Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
vendor
bin
dist
.deps/

# tests
.coverage
Expand Down
10 changes: 7 additions & 3 deletions eirctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,20 @@ tasks:
open http://localhost:6060/pkg/github.com/DevLabFoundry/configmanager/v2/?m=all
godoc -notes "BUG|TODO" -play -http=:6060

build:binary:
go:build:binary:
context: go1x
description: |
Generates binaries in a dist folder
Generates all the binaries for the configmanager utility.
command:
- |
mkdir -p /eirctl/.deps
ldflags="-s -w -X \"github.com/DevLabFoundry/configmanager/v2/cmd/configmanager.Version=${VERSION}\" -X \"github.com/DevLabFoundry/configmanager/v2/cmd/configmanager.Revision=${REVISION}\" -extldflags -static"
GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} CGO_ENABLED=0 go build -mod=readonly -buildvcs=false -ldflags="$ldflags" \
GOPATH=/eirctl/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} CGO_ENABLED=0 go build -mod=readonly -buildvcs=false -ldflags="$ldflags" \
-o ./dist/configmanager-${BUILD_GOOS}-${BUILD_GOARCH}${BUILD_SUFFIX} ./cmd
echo "---"
echo "Built: configmanager-${BUILD_GOOS}-${BUILD_GOARCH}${BUILD_SUFFIX}"
echo "Version: ${VERSION}"
reset_context: true
variations:
- BUILD_GOOS: darwin
Expand Down Expand Up @@ -168,5 +172,5 @@ pipelines:

build:bin:
- task: clean
- task: build:binary
- task: go:build:binary
depends_on: clean