|
@@ -74,6 +74,9 @@ jobs:
|
|
|
id-token: write # gives the action the ability to mint the OIDC token necessary to request a Sigstore signing certificate
|
|
id-token: write # gives the action the ability to mint the OIDC token necessary to request a Sigstore signing certificate
|
|
|
attestations: write # this permission is necessary to persist the attestation
|
|
attestations: write # this permission is necessary to persist the attestation
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
+ if: |
|
|
|
|
|
+ github.ref == 'refs/heads/main' ||
|
|
|
|
|
+ startsWith(github.ref, 'refs/heads/release-')
|
|
|
steps:
|
|
steps:
|
|
|
- name: Checkout
|
|
- name: Checkout
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
@@ -90,17 +93,13 @@ jobs:
|
|
|
version: v3.4.2
|
|
version: v3.4.2
|
|
|
|
|
|
|
|
- name: Generate chart
|
|
- name: Generate chart
|
|
|
- run: |
|
|
|
|
|
- make helm.generate
|
|
|
|
|
|
|
+ run: make helm.generate
|
|
|
- name: Import GPG key
|
|
- name: Import GPG key
|
|
|
run: |
|
|
run: |
|
|
|
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --dearmor --output keyring.gpg
|
|
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --dearmor --output keyring.gpg
|
|
|
echo -n "${{ secrets.GPG_PASSPHRASE }}" > passphrase-file.txt
|
|
echo -n "${{ secrets.GPG_PASSPHRASE }}" > passphrase-file.txt
|
|
|
- name: Run chart-releaser
|
|
- name: Run chart-releaser
|
|
|
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
|
|
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
|
|
|
- if: |
|
|
|
|
|
- github.ref == 'refs/heads/main' ||
|
|
|
|
|
- startsWith(github.ref, 'refs/heads/release-')
|
|
|
|
|
env:
|
|
env:
|
|
|
CR_KEY: external-secrets <external-secrets@external-secrets.io>
|
|
CR_KEY: external-secrets <external-secrets@external-secrets.io>
|
|
|
CR_KEYRING: keyring.gpg
|
|
CR_KEYRING: keyring.gpg
|