Add binary build
This commit is contained in:
parent
b5081f2c4d
commit
ba2079449c
|
@ -6,6 +6,19 @@ stages:
|
|||
- build
|
||||
- deploy
|
||||
|
||||
bin:
|
||||
stage: build
|
||||
needs: []
|
||||
image: golang:latest
|
||||
script:
|
||||
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
|
||||
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
|
||||
- cd $GOPATH/src/$REPO_NAME
|
||||
- CGO_ENABLED=0 go build -o $CI_PROJECT_DIR/rimgo
|
||||
artifacts:
|
||||
paths:
|
||||
- rimgo
|
||||
|
||||
docker:
|
||||
image: docker:20
|
||||
stage: build
|
||||
|
|
Loading…
Reference in New Issue