Skip to content

Commit

Permalink
go release yaml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmadhankumar committed Dec 11, 2023
1 parent 5187753 commit 12cbd07
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/.goreleaser.yaml

This file was deleted.

12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
runs-on: ubuntu-latest
# Set permissions of github token. See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions:
contents: write
contents: read
packages: write
id-token: write
steps:
- name: Checkout
Expand Down Expand Up @@ -43,6 +44,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.TAG_NAME }}

- name: Verify checksums signature
run: |
cosign verify-blob \
--cert ${{ checksums_file_certificate }} \
--signature ${{ checksums_file_signature }} \
--certificate-identity-regexp=https://github.com/carvel-dev \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
${{ checksums_file }}
- uses: actions/github-script@v4
id: get-checksums-from-draft-release
if: startsWith(github.ref, 'refs/tags/')
Expand Down
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ checksum:
name_template: 'checksums.txt'
algorithm: sha256
disable: false

signs:
- artifacts: checksum
certificate: '${artifact}.pem'
cmd: cosign
args:
- sign-blob
- "--yes"
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
output: true

snapshot:
name_template: "{{ .Tag }}-next"
release:
Expand Down

0 comments on commit 12cbd07

Please sign in to comment.