Skip to content

Commit

Permalink
Set Local Beach version in Github build step
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemke committed Oct 14, 2020
1 parent fada1d0 commit d75fea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
os="$(echo $target | cut -d '/' -f1)"
arch="$(echo $target | cut -d '/' -f2)"
echo "--> Building project for: ${os}/${arch}"
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o beach .
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -ldflags "-X github.com/flownative/localbeach/pkg/version.Version=${GITHUB_REF#refs/*/}" -o beach .
zip "beach_${os}_${arch}.zip" beach
ls -la
done
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build:
go generate -v
go install -v
go build -v -o beach
go build -v -ldflags "-X github.com/flownative/localbeach/pkg/version.Version=dev" -o beach

0 comments on commit d75fea4

Please sign in to comment.