File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
stages :
2
+ - test
2
3
- build
3
4
5
+ test :
6
+ stage : test
7
+ image : golang:1.23-bullseye
8
+ script :
9
+ - go test ./...
10
+
4
11
build :
5
12
stage : build
6
- image : golang:1.18-stretch
13
+ image : golang:1.23-bullseye
7
14
variables :
8
15
CGO_ENABLED : 0
9
16
script :
10
- - cd client
17
+ - cd cmd/tunnel- client
11
18
- go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-amd64
19
+ - GOOS=linux GOARCH=arm64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-arm64
12
20
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-amd64
21
+ - GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-arm64
13
22
- GOOS=windows GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-amd64.exe
14
23
artifacts :
15
24
paths :
16
- - client/tunnel-client-linux-amd64
17
- - client/tunnel-client-darwin-amd64
18
- - client/tunnel-client-amd64.exe
19
- only :
20
- - master
25
+ - cmd/tunnel- client/tunnel-client-linux-amd64
26
+ - cmd/tunnel- client/tunnel-client-linux-arm64
27
+ - cmd/tunnel- client/tunnel-client-darwin- amd64
28
+ - cmd/tunnel-client/tunnel-client-darwin-arm64
29
+ - cmd/tunnel-client/tunnel-client-amd64.exe
You can’t perform that action at this time.
0 commit comments