File tree Expand file tree Collapse file tree 2 files changed +13
-19
lines changed
Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Original file line number Diff line number Diff line change 33
44version : 2
55
6+ dist : " ./dist"
7+
68before :
79 hooks :
810 - go mod tidy
@@ -11,19 +13,16 @@ before:
1113builds :
1214 - id : osctrl-tls
1315 main : ./cmd/tls
14- binary : osctrl-tls
16+ binary : " osctrl-tls-{{ .Os }}-{{ .Arch }}"
17+ no_unique_dist_dir : true
1518 env :
1619 - CGO_ENABLED=0
1720 goos :
1821 - linux
1922 - darwin
20- - windows
2123 goarch :
2224 - amd64
2325 - arm64
24- ignore :
25- - goos : windows
26- goarch : arm64
2726 ldflags :
2827 - -s -w
2928 - -X main.version={{.Version}}
@@ -32,19 +31,16 @@ builds:
3231
3332 - id : osctrl-admin
3433 main : ./cmd/admin
35- binary : osctrl-admin
34+ binary : " osctrl-admin-{{ .Os }}-{{ .Arch }}"
35+ no_unique_dist_dir : true
3636 env :
3737 - CGO_ENABLED=0
3838 goos :
3939 - linux
4040 - darwin
41- - windows
4241 goarch :
4342 - amd64
4443 - arm64
45- ignore :
46- - goos : windows
47- goarch : arm64
4844 ldflags :
4945 - -s -w
5046 - -X main.version={{.Version}}
@@ -53,19 +49,16 @@ builds:
5349
5450 - id : osctrl-api
5551 main : ./cmd/api
56- binary : osctrl-api
52+ binary : " osctrl-api-{{ .Os }}-{{ .Arch }}"
53+ no_unique_dist_dir : true
5754 env :
5855 - CGO_ENABLED=0
5956 goos :
6057 - linux
6158 - darwin
62- - windows
6359 goarch :
6460 - amd64
6561 - arm64
66- ignore :
67- - goos : windows
68- goarch : arm64
6962 ldflags :
7063 - -s -w
7164 - -X main.version={{.Version}}
@@ -74,7 +67,8 @@ builds:
7467
7568 - id : osctrl-cli
7669 main : ./cmd/cli
77- binary : osctrl-cli
70+ binary : " osctrl-cli-{{ .Os }}-{{ .Arch }}"
71+ no_unique_dist_dir : true
7872 env :
7973 - CGO_ENABLED=0
8074 goos :
Original file line number Diff line number Diff line change 8383 rm -rf $(OUTPUT ) /$(ADMIN_NAME )
8484 rm -rf $(OUTPUT ) /$(API_NAME )
8585 rm -rf $(OUTPUT ) /$(CLI_NAME )
86- clean-dist
86+ make clean-dist
8787
8888# Dekete all dependencies go.sum files
8989clean_go :
@@ -271,7 +271,7 @@ test_cover:
271271
272272# Build snapshot binaries with GoReleaser
273273release-build :
274- clean-dist
274+ make clean-dist
275275 ./tools/gorelease.sh build
276276
277277# Check GoReleaser configuration
@@ -284,7 +284,7 @@ release-init:
284284
285285# Create a release (requires tag)
286286release :
287- clean-dist
287+ make clean-dist
288288 ./tools/gorelease.sh release
289289
290290# Build and test release locally
You can’t perform that action at this time.
0 commit comments