feat: add existingSecret option for data (#33) #9
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
name: Release Chart | |
on: | |
push: | |
paths: | |
- chart/ssh-punchhole/Chart.yaml | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
IMAGE_SUFFIX: /chart | |
jobs: | |
chart-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Login to registry | |
run: | | |
echo '${{ secrets.GITHUB_TOKEN }}' | \ | |
helm registry login \ | |
-u '${{ github.repository_owner }}' \ | |
--password-stdin \ | |
${REGISTRY} | |
- name: Package Chart | |
run: | | |
echo PACKAGE=$(helm package chart/ssh-punchhole | cut -d " " -f 8) >> ${GITHUB_ENV} | |
- name: Push Chart | |
run: | | |
helm push \ | |
${{ env.PACKAGE }} \ | |
oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.IMAGE_SUFFIX }} |