forked from microsoft/retina
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: publish charts as OCI artifacts to GHCR
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release Retina Charts | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
tags: ["v*"] | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
push-retina-charts: | ||
name: Publish Retina Helm Charts | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: azure/setup-helm@v4.1.0 | ||
with: | ||
version: "<version>" # default is latest (stable) | ||
id: install | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u $ --password-stdin | ||
|
||
- name: Build/Push Chart | ||
shell: bash | ||
run: | | ||
set -euo pipefail | ||
export TAG=$(make version) | ||
helm package ./deploy/manifests/controller/helm/retina --version $TAG | ||
helm push retina-*.tgz oci://ghcr.io/${{ github.repository }}/charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters