Skip to content

Commit b420b37

Browse files
Merge pull request #42 from DevLabFoundry/fix/release-build-process
2 parents 06be186 + d6fbbca commit b420b37

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
vendor
1010
bin
1111
dist
12+
.deps/
1213

1314
# tests
1415
.coverage

eirctl.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,20 @@ tasks:
9999
open http://localhost:6060/pkg/github.com/DevLabFoundry/configmanager/v2/?m=all
100100
godoc -notes "BUG|TODO" -play -http=:6060
101101
102-
build:binary:
102+
go:build:binary:
103103
context: go1x
104104
description: |
105105
Generates binaries in a dist folder
106106
Generates all the binaries for the configmanager utility.
107107
command:
108108
- |
109+
mkdir -p /eirctl/.deps
109110
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"
110-
GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} CGO_ENABLED=0 go build -mod=readonly -buildvcs=false -ldflags="$ldflags" \
111+
GOPATH=/eirctl/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} CGO_ENABLED=0 go build -mod=readonly -buildvcs=false -ldflags="$ldflags" \
111112
-o ./dist/configmanager-${BUILD_GOOS}-${BUILD_GOARCH}${BUILD_SUFFIX} ./cmd
113+
echo "---"
114+
echo "Built: configmanager-${BUILD_GOOS}-${BUILD_GOARCH}${BUILD_SUFFIX}"
115+
echo "Version: ${VERSION}"
112116
reset_context: true
113117
variations:
114118
- BUILD_GOOS: darwin
@@ -168,5 +172,5 @@ pipelines:
168172

169173
build:bin:
170174
- task: clean
171-
- task: build:binary
175+
- task: go:build:binary
172176
depends_on: clean

0 commit comments

Comments
 (0)