Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # tag=v5.3.0
with:
go-version: "${{ steps.gover.outputs.goversion }}"
- name: Set up Cosign
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # tag=v3.8.1
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # tag=v3.3.0
with:
registry: ghcr.io
Expand All @@ -40,3 +38,13 @@ jobs:
args: release --clean --parallelism=1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Set up for signing"
run: |
mkdir -p to_sign
mv dist/*.tar.gz to_sign/
mv dist/*.deb to_sign/
mv dist/*.apk to_sign/
- name: "Sign artifacts"
uses: actions/attest-build-provenance@bd77c077858b8d561b7a36cbe48ef4cc642ca39d # v2.2.2
with:
subject-path: "to_sign/*"
12 changes: 0 additions & 12 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ builds:
goarch:
- amd64
- arm64
hooks:
post:
- cmd: "cosign sign-blob --yes --output-certificate dist/{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}-keyless.pem --output-signature dist/{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}-keyless.sig {{ .Path }}"

release:
extra_files:
Expand Down Expand Up @@ -63,15 +60,6 @@ docker_manifests:
- ghcr.io/shopify/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/shopify/{{ .ProjectName }}:{{ .Version }}-arm64

docker_signs:
- cmd: cosign
artifacts: manifests
output: true
args:
- "sign"
- "--yes"
- "${artifact}"

nfpms:
- id: goreleaser
maintainer: "Shopify <admins@shopify.com>"
Expand Down