Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeo committed May 4, 2023
1 parent 9abb3b3 commit a1a3b8b
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 11 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,37 @@ on:
- main

jobs:
test-pre-commit:
release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: azure/setup-helm@v3
- name: Add helm repo for dependencies
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
mkdir -p public
mv README.md public/index.md
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public
cname: charts.metatype.dev
enable_jekyll: true
- uses: helm/chart-releaser-action@v1.5.0
with:
charts_dir: charts
env:
charts_repo_url: https://charts.metatype.dev
skip_existing: true
mark_as_latest: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
CR_OWNER: metatypedev
CR_GIT_REPO: charts
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
# [Metatype](https://github.com/metatypedev/metatype) charts

- [Typegate](charts/typegate/README.md)

## Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

```shell
helm repo add metatype https://charts.metatype.dev
```

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run
`helm search repo metatyoe` to see the charts.

To install the <chart-name> chart:

```shell
helm install my-<chart-name> metatype/<chart-name>
```

To uninstall the chart:

```shell
helm delete my-<chart-name>
```
8 changes: 4 additions & 4 deletions charts/typegate/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 17.0.1
version: 17.10.1
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.16.1
digest: sha256:e7d37a1d09fa50a250deae8a304e0d17ce05654f100b86b1023f5a4c64b1efa2
generated: "2022-07-17T14:32:36.890016+02:00"
version: 1.17.1
digest: sha256:43e2d8608b65bab85da408e910340a8f5e011ad54f8377413b618fc7c83d6047
generated: "2023-05-04T20:20:57.517615+02:00"
4 changes: 2 additions & 2 deletions charts/typegate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: typegate
description: A Helm chart for Typegate
type: application
version: 0.1.0
appVersion: "0.0.1"
appVersion: "0.1.7"
dependencies:
- name: redis
condition: redis.enabled
version: "17.0.1"
version: "17.10.x"
repository: "https://charts.bitnami.com/bitnami"
- name: common
repository: https://charts.bitnami.com/bitnami
Expand Down

0 comments on commit a1a3b8b

Please sign in to comment.