Skip to content

Commit

Permalink
Fixed go static build
Browse files Browse the repository at this point in the history
  • Loading branch information
cromefire committed Dec 13, 2020
1 parent 640015a commit a0fb3a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ variables:

build:
stage: build
variables:
CGO_ENABLED: "0"
GOOS: linux
GOARCH: amd64
script:
- GOOS=linux GOARCH=amd64 go build -ldflags="-w -s"
- go build -ldflags="-w -s"
artifacts:
expose_as: jf-server-announcer
name: jf-server-announcer
Expand Down

0 comments on commit a0fb3a3

Please sign in to comment.