-
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.
- Loading branch information
1 parent
ec6bd4c
commit 93b4cd4
Showing
2 changed files
with
27 additions
and
15 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 |
---|---|---|
|
@@ -3,13 +3,11 @@ name: helm | |
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
paths: | ||
/charts/** | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
|
@@ -18,7 +16,7 @@ jobs: | |
- name: set up helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.5.0 | ||
version: v3.13.0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
|
@@ -36,13 +34,26 @@ jobs: | |
- name: run chart-testing (install) | ||
run: ct install --all | ||
|
||
- name: configure git | ||
release: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: set up helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.13.0 | ||
|
||
- name: login to github container registry using helm | ||
run: | | ||
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io/snapp-incubator/soteria --username ${{ github.repository_owner }} --password-stdin | ||
- name: save helm chart to local registry | ||
run: | | ||
helm chart save / ghcr.io/snapp-incubator/soteria-chart:${{ github.sha }} | ||
- name: publish chart to acr | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_SKIP_EXISTING: false | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
helm chart push ghcr.io/snapp-incubator/soteria-chart:${{ github.sha }} |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name: test | ||
on: | ||
- push | ||
|
||
jobs: | ||
lint: | ||
name: lint | ||
|