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
11 changes: 6 additions & 5 deletions .github/workflows/cd-helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push chart to OCI registry
id: push
if: steps.cr.outputs.changed_charts != ''
run: helm push .cr-release-packages/*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
run: |
out=$(helm push .cr-release-packages/*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts)
echo "$out"
echo "digest=$(awk '/^Digest:/ {print $2}' <<<"$out")" >> "$GITHUB_OUTPUT"

- name: Install Cosign
if: steps.cr.outputs.changed_charts != ''
uses: sigstore/cosign-installer@v4.1.2

- name: Sign chart
if: steps.cr.outputs.changed_charts != ''
run: |
ref=ghcr.io/${{ github.repository_owner }}/charts/generic-device-plugin
digest=$(docker buildx imagetools inspect "${ref}:${{ steps.cr.outputs.chart_version }}" --format '{{.Manifest.Digest}}')
cosign sign --yes "${ref}@${digest}"
run: cosign sign --yes "ghcr.io/${{ github.repository_owner }}/charts/generic-device-plugin@${{ steps.push.outputs.digest }}"
Loading