diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index accdef9..688a2a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/README.md b/README.md index d7ccf4b..7d53174 100644 --- a/README.md +++ b/README.md @@ -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: + +```shell +helm install my- metatype/ +``` + +To uninstall the chart: + +```shell +helm delete my- +``` diff --git a/charts/typegate/Chart.lock b/charts/typegate/Chart.lock index bfccb0a..dfad2b5 100644 --- a/charts/typegate/Chart.lock +++ b/charts/typegate/Chart.lock @@ -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" diff --git a/charts/typegate/Chart.yaml b/charts/typegate/Chart.yaml index e084899..31f1a46 100644 --- a/charts/typegate/Chart.yaml +++ b/charts/typegate/Chart.yaml @@ -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