Skip to content

Commit 91a10e9

Browse files
committed
install and use cosign from the main branch
1 parent a9aa112 commit 91a10e9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ jobs:
2424
with:
2525
go-version: 1.17.x
2626

27-
- uses: sigstore/cosign-installer@main
27+
- name: install head cosign
28+
run: go install github.com/sigstore/cosign@main
29+
30+
- name: check cosign
31+
run: cosign version
2832

2933
- name: Run GoReleaser
3034
uses: goreleaser/goreleaser-action@v2

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ before:
99
hooks:
1010
- make clean
1111
- make dist
12-
- sh -c "cosign sign-blob --timeout 360s dist/alertmanager-{{ .Version }}.tar.gz > dist/alertmanager-{{ .Version }}.sig"
12+
- sh -c "cosign sign-blob --timeout 360s --output dist/alertmanager-{{ .Version }}.sig dist/alertmanager-{{ .Version }}.tar.gz"
1313

1414
checksum:
1515
extra_files:

0 commit comments

Comments
 (0)