Skip to content

Commit

Permalink
release: download modules and check dirty state
Browse files Browse the repository at this point in the history
Plus a tiny nit to not have to pass `--yes` to Cosign everywhere, and
enabling of size reporting.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
  • Loading branch information
hiddeco committed Jul 31, 2023
1 parent c24a8fd commit 521b3a0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

project_name: sops

# xref: https://goreleaser.com/customization/hooks/
before:
hooks:
- go mod download
- /usr/bin/env bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'

# xref: https://goreleaser.com/customization/env/
env:
- COSIGN_YES=true

# xref: https://goreleaser.com/customization/reportsizes/
report_sizes: true

# xref: https://goreleaser.com/customization/build/
builds:
- id: binary-linux
Expand Down Expand Up @@ -131,7 +144,6 @@ signs:
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- '${artifact}'
- "--yes"

# xref: https://goreleaser.com/customization/docker/
dockers:
Expand Down Expand Up @@ -237,7 +249,6 @@ docker_signs:
args:
- "sign"
- "${artifact}@${digest}"
- "--yes"

# xref: https://goreleaser.com/customization/changelog/
changelog:
Expand Down

0 comments on commit 521b3a0

Please sign in to comment.