Skip to content

Commit

Permalink
add LDFLAGS to goreleaser to include in the binary the right, version…
Browse files Browse the repository at this point in the history
…. Also add a new tag test* to be able to test this solution
  • Loading branch information
joanestebanr committed Oct 26, 2023
1 parent 3a4aa63 commit b12f021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]' # this action will only run on tags that follow semver

- 'test[0-9]+.[0-9]+.[0-9]' # this action will only run on tags that follow semver
jobs:
releaser:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ builds:
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/0xPolygonHermez/zkevm-node.Version={{.Version}}
- -X github.com/0xPolygonHermez/zkevm-node.GitRev={{.Commit}}
- -X github.com/0xPolygonHermez/zkevm-node.BuildDate={{.Date}}
- -X github.com/0xPolygonHermez/zkevm-node.GitBranch={{.Branch}}
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
Expand Down

0 comments on commit b12f021

Please sign in to comment.