Skip to content

Commit

Permalink
ensure released binary is reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook committed Oct 24, 2022
1 parent 70dd4e0 commit b5e900f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release

- run: |
REPO="${{ github.repository }}"
REPO_NAME="${REPO#*/}"
ORIG_BIN="dist/${REPO_NAME}_linux_amd64_v1/${REPO_NAME}"
go install github.com/capnspacehook/gorepro@latest
gorepro -b=-buildmode=pie -no-go-gc $ORIG_BIN
release-image:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b5e900f

Please sign in to comment.