Skip to content

Commit

Permalink
fix: try other method for passing env var
Browse files Browse the repository at this point in the history
  • Loading branch information
cterence committed Oct 20, 2023
1 parent bcb3a14 commit a4ae2a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
RELEASE_NAME=guacamole@${VERSION#v}
echo "RELEASE_NAME=${RELEASE_NAME%-*}" >> $GITHUB_ENV
echo $RELEASE_NAME
echo $BUILD_TIMESTAMP
echo $VERSION
echo $COMMIT_HASH
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ builds:
- CGO_ENABLED=0
- PACKAGE=github.com/padok-team/guacamole
ldflags:
- -X ${PACKAGE}/internal/version.Version={{ .Env.VERSION }}
- -X ${PACKAGE}/internal/version.CommitHash={{ .Env.COMMIT_HASH }}
- -X ${PACKAGE}/internal/version.BuildTimestamp=}{{ .Env.BUILD_TIMESTAMP }}
- -X "${PACKAGE}/internal/version.Version={{ .Env.VERSION }}"
- -X "${PACKAGE}/internal/version.CommitHash={{ .Env.COMMIT_HASH }}"
- -X "${PACKAGE}/internal/version.BuildTimestamp=}{{ .Env.BUILD_TIMESTAMP }}"
goos:
- linux
main: ./
Expand Down

0 comments on commit a4ae2a3

Please sign in to comment.