Only build binaries for tags.

v0.1
Martin Dosch 3 years ago
parent 0b7c300edc
commit e250408748

@ -36,6 +36,8 @@ compile_amd64:
stage: build
script:
- env GOOS=linux GOARCH=amd64 go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
artifacts:
paths:
- go-sendxmpp
@ -44,6 +46,8 @@ compile_arm64:
stage: build
script:
- env GOOS=linux GOARCH=arm64 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
artifacts:
paths:
- go-sendxmpp
@ -52,6 +56,8 @@ compile_386:
stage: build
script:
- env GOOS=linux GOARCH=386 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
artifacts:
paths:
- go-sendxmpp
@ -60,6 +66,8 @@ compile_arm:
stage: build
script:
- env GOOS=linux GOARCH=arm go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
artifacts:
paths:
- go-sendxmpp
@ -68,6 +76,8 @@ compile_win386:
stage: build
script:
- env GOOS=windows GOARCH=386 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp.exe
only:
- tags
artifacts:
paths:
- go-sendxmpp.exe
@ -76,6 +86,8 @@ compile_win64:
stage: build
script:
- env GOOS=windows GOARCH=amd64 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp.exe
only:
- tags
artifacts:
paths:
- go-sendxmpp.exe

Loading…
Cancel
Save