diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3d0dbc85f..af087a9f9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -131,7 +144,6 @@ signs: - "--output-certificate=${certificate}" - "--output-signature=${signature}" - '${artifact}' - - "--yes" # xref: https://goreleaser.com/customization/docker/ dockers: @@ -237,7 +249,6 @@ docker_signs: args: - "sign" - "${artifact}@${digest}" - - "--yes" # xref: https://goreleaser.com/customization/changelog/ changelog: