Skip to content

Commit

Permalink
feat: add signature
Browse files Browse the repository at this point in the history
  • Loading branch information
fad3t committed Oct 2, 2024
1 parent 58f816c commit b87191e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,20 @@ jobs:
helm registry login registry-1.docker.io -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push Helm chart
id: push
shell: bash
run: |
version="${{ steps.tag.outputs.tag }}"
ersion="${version#v}"
echo "version is ${version}, ersion is ${ersion}"
helm package test-chart --dependency-update --version "${ersion}"
helm push test-chart-*.tgz "oci://registry-1.docker.io/fad3t"
helm push test-chart-*.tgz "oci://registry-1.docker.io/fad3t" &> metadata.txt
digest=$(awk '/Digest: /{print $2}' metadata.txt)
echo "digest=${digest}" >> GITHUB_OUTPUT
- name: Install Cosign
uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0

- name: Sign Container Image
run: |
cosign sign -y registry-1.docker.io/fad3t/test-chart@${{ steps.push.outputs.digest }}

0 comments on commit b87191e

Please sign in to comment.