Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvrabo committed Jan 2, 2024
1 parent 13bf507 commit 8840cab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
OUTPUT_DIR=$PWD/dist
mkdir -p ${OUTPUT_DIR}

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $PWD/target/linux_amr64/config-hub -ldflags "-X github.com/rabobank/config-hub/cfg.Version=${VERSION} -X github.com/rabobank/config-hub/cfg.Commit=${COMMIT}" main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $PWD/target/linux_amr64/config-hub -ldflags "-X github.com/rabobank/config-hub/cfg.Version=${VERSION} -X github.com/rabobank/config-hub/cfg.Commit=${COMMIT}"
tar czf ${OUTPUT_DIR}/config-hub-linux-amd64-${VERSION}.tgz -C $PWD/target/linux_amr64 config-hub
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
go.work
target/
target/
dist/

0 comments on commit 8840cab

Please sign in to comment.