From 69a0ffe6462aa324a5ee51e83785074409a95f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Carpintero?= Date: Tue, 13 Aug 2024 13:49:47 +0200 Subject: [PATCH] Publish vulcan chart also to ghcr.io OCI registry --- .github/workflows/release.yml | 9 +++++++++ README.md | 11 +++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 618c9b56..b13dd190 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ jobs: permissions: contents: write + packages: write runs-on: ubuntu-latest @@ -40,3 +41,11 @@ jobs: charts_dir: stable env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Publish to ghcr.io + run: | + helm dep update stable/vulcan + OUT=$(mktemp -d) + helm package stable/vulcan -d $OUT + helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + find "$OUT" -name "*.tgz" -exec helm push {} oci://ghcr.io/${{ github.repository }} \; diff --git a/README.md b/README.md index 1f9d6b12..906f5534 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,6 @@ https://adevinta.github.io/vulcan-charts ## Vulcan Charts -Add the Vulcan repository to Helm: - -```sh -helm repo add vulcan https://adevinta.github.io/vulcan-charts -``` - ### Vulcan Create the `vulcan` namespace: @@ -27,7 +21,12 @@ Create a `values.yaml` config file with the parameters or choose one of the file Install vulcan application: ```sh +# Based on a helm http repository +helm repo add vulcan https://adevinta.github.io/vulcan-charts helm upgrade -i vulcan vulcan/vulcan -f examples/local.yaml --namespace vulcan + +# Based on OCI (recommended) +helm upgrade -i vulcan oci://ghcr.io/adevinta/vulcan-charts/vulcan -f examples/local.yaml --namespace vulcan ``` ## Contributors