Add binary build

This commit is contained in:
video-prize-ranch 2022-06-04 10:32:14 -04:00
parent b5081f2c4d
commit ba2079449c
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
1 changed files with 13 additions and 0 deletions

View File

@ -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