Skip to content

Commit

Permalink
try env
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu committed Apr 18, 2024
1 parent c470db1 commit 4583d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/.goreleaser.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ builds:
- arm64
ldflags:
# strip debug info for smaller binaries
- "-s -w -X main.version={{"{{"}} .Env.VERSION {{"}}"}} -X main.date={{"{{"}} .Date {{"}}"}} -X main.commit={{"{{"}}.Commit {{"}}"}} -X main.builtBy=goreleaser"
- "-s -w -X main.version={{"{{"}} .Env.GORELEASER_CURRENT_TAG {{"}}"}} -X main.date={{"{{"}} .Date {{"}}"}} -X main.commit={{"{{"}}.Commit {{"}}"}} -X main.builtBy=goreleaser"

# Archive customization
archives:
Expand Down
3 changes: 1 addition & 2 deletions templates/scripts/release.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
# run from the export repository and the version tag is pushed to the plugin repository.

export VERSION=$(go list -m -json github.com/turbot/steampipe-plugin-{{.Plugin}} | jq --raw-output '.Version | sub("^v"; "")')
echo "VERSION set to $VERSION"
goreleaser release --snapshot --rm-dist --skip=publish
echo "VERSION set to $VERSION"

0 comments on commit 4583d53

Please sign in to comment.