Skip to content

Commit

Permalink
Build in pipeline with ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
mzampetakis committed Mar 20, 2024
1 parent 8ffd90a commit 9fc86c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .concourse/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
- |
cd github-actions-adapter
COMMIT_HASH=$(git rev-parse HEAD)
env GOOS=linux GOARCH=amd64 go build -o=../binaries/radicle-github-actions-adapter-linux-amd64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=linux GOARCH=arm64 go build -o=../binaries/radicle-github-actions-adapter-linux-arm64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=darwin GOARCH=amd64 go build -o=../binaries/radicle-github-actions-adapter-darwin-amd64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=darwin GOARCH=arm64 go build -o=../binaries/radicle-github-actions-adapter-darwin-arm64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=linux GOARCH=amd64 go build -ldflags "-X 'radicle-concourse-adapter/pkg/version.Version=development' -X 'radicle-concourse-adapter/pkg/version.BuildTime=$(shell date)'" -o=../binaries/radicle-github-actions-adapter-linux-amd64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=linux GOARCH=arm64 go build -ldflags "-X 'radicle-concourse-adapter/pkg/version.Version=development' -X 'radicle-concourse-adapter/pkg/version.BuildTime=$(shell date)'" -o=../binaries/radicle-github-actions-adapter-linux-arm64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'radicle-concourse-adapter/pkg/version.Version=development' -X 'radicle-concourse-adapter/pkg/version.BuildTime=$(shell date)'" -o=../binaries/radicle-github-actions-adapter-darwin-amd64-$COMMIT_HASH ./cmd/github-actions-adapter
env GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'radicle-concourse-adapter/pkg/version.Version=development' -X 'radicle-concourse-adapter/pkg/version.BuildTime=$(shell date)'" -o=../binaries/radicle-github-actions-adapter-darwin-arm64-$COMMIT_HASH ./cmd/github-actions-adapter
# push images
- put: bucket
Expand Down

0 comments on commit 9fc86c4

Please sign in to comment.