-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create new workflow that releases the chart
- Loading branch information
1 parent
3cbf5ca
commit 7e52515
Showing
2 changed files
with
38 additions
and
0 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,30 @@ | ||
name: Publish chart | ||
|
||
on: | ||
release: | ||
types: | ||
- released | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Publish chart to OCI registry | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Helm login | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | \ | ||
helm registry login ghcr.io \ | ||
--username "$GITHUB_REPOSITORY_OWNER" \ | ||
--password-stdin | ||
- name: Helm package | ||
run: | | ||
helm package charts/stateless-dns -u --version "${GITHUB_REF_NAME#v}" | ||
- name: Helm push | ||
run: | | ||
helm push \ | ||
"stateless-dns-${GITHUB_REF_NAME#v}.tgz" \ | ||
"oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/pdns-stateless" |
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