Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,18 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v4

- name: Login to GHCR OCI registry
- name: Login to GHCR OCI registry (Helm)
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
helm registry login ghcr.io -u "${{ github.actor }}" --password-stdin

- name: Login to GHCR (cosign/Docker credentials)
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version
id: version
run: |
Expand All @@ -215,17 +222,21 @@ jobs:
run: helm package deploy/helm/reaper --destination .

- name: Push to OCI registry
id: helm-push
run: |
helm push "reaper-${{ steps.version.outputs.version }}.tgz" \
oci://ghcr.io/${{ github.repository_owner }}/charts
OUTPUT=$(helm push "reaper-${{ steps.version.outputs.version }}.tgz" \
oci://ghcr.io/${{ github.repository_owner }}/charts 2>&1)
echo "$OUTPUT"
DIGEST=$(echo "$OUTPUT" | grep -oP 'Digest: \K\S+')
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"

- name: Install cosign
uses: sigstore/cosign-installer@v3

- name: Sign chart with cosign (keyless)
run: |
cosign sign --yes \
ghcr.io/${{ github.repository_owner }}/charts/reaper:${{ steps.version.outputs.version }}
ghcr.io/${{ github.repository_owner }}/charts/reaper@${{ steps.helm-push.outputs.digest }}

release:
name: Create Release
Expand Down
Loading