Skip to content

Commit

Permalink
Publish vulcan chart also to ghcr.io OCI registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusfcr committed Aug 13, 2024
1 parent 45d74a2 commit 69a0ffe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:

permissions:
contents: write
packages: write

runs-on: ubuntu-latest

Expand All @@ -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 }} \;
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 69a0ffe

Please sign in to comment.