Skip to content

Commit 67d1822

Browse files
J-Thompson12Justin Thompson
and
Justin Thompson
authored
add custom build settings for releaser (#170)
* add custom build settings for releaser * add stoml install Co-authored-by: Justin Thompson <[email protected]>
1 parent 39df9e1 commit 67d1822

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ bin
44

55
tools/bin/*
66
coverage.out
7+
dist/

.goreleaser.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
project_name: wego
2+
builds:
3+
- <<: &build_defaults
4+
binary: wego
5+
main: ./cmd/wego
6+
ldflags:
7+
- -X github.com/weaveworks/weave-gitops/cmd/wego/version.BuildTime={{.Date}}
8+
- -X github.com/weaveworks/weave-gitops/cmd/wego/version.Branch=$(BRANCH)
9+
- -X github.com/weaveworks/weave-gitops/cmd/wego/version.GitCommit={{.Commit}}
10+
- -X github.com/weaveworks/weave-gitops/pkg/version.FluxVersion=$(FLUX_VERSION)
11+
env:
12+
- CGO_ENABLED=0
13+
hooks:
14+
pre: export CURRENT_DIR=pwd
15+
pre: $(CURRENT_DIR)/tools/download-deps.sh $(CURRENT_DIR)/tools/dependencies.toml
16+
pre: export BRANCH=git rev-parse --abbrev-ref HEAD
17+
pre: export FLUX_VERSION=$(CURRENT_DIR)/tools/bin/stoml $(CURRENT_DIR)/tools/dependencies.toml flux.version
18+
id: linux
19+
goos:
20+
- linux
21+
goarch:
22+
- amd64
23+
- arm64
24+
- arm
25+
goarm:
26+
- 7
27+
- <<: *build_defaults
28+
id: darwin
29+
goos:
30+
- darwin
31+
goarch:
32+
- amd64
33+
- arm64

0 commit comments

Comments
 (0)