Skip to content

Commit

Permalink
feat: prepare for the new releases
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
  • Loading branch information
developer-guy committed Dec 23, 2021
1 parent bcde6f7 commit 6da18da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Install Cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.3.0'
- uses: sigstore/cosign-installer@v1.4.1
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: 1
11 changes: 10 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ checksum:
name_template: 'checksums.txt'
signs:
- cmd: cosign
args: ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output=${signature}", "${artifact}"]
env:
- COSIGN_EXPERIMENTAL=1
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
output: true
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: checksum
snapshot:
name_template: "{{ .Tag }}-next"
Expand Down

0 comments on commit 6da18da

Please sign in to comment.