diff options
author | Andinus <andinus@inventati.org> | 2020-03-14 23:01:08 +0530 |
---|---|---|
committer | Andinus <andinus@inventati.org> | 2020-03-14 23:01:08 +0530 |
commit | 15af1bc737282c1c82f841917ed80b9550250b3c (patch) | |
tree | 5facbb9d7c39649874521d475ba72cd35b39e568 | |
parent | 2bb448a63bf9e5d6c0b8121f951091ffdb2b4739 (diff) | |
download | cetus-15af1bc737282c1c82f841917ed80b9550250b3c.tar.gz |
Add gitlab-ci build files
-rw-r--r-- | build/ci/gitlab-ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build/ci/gitlab-ci.yml b/build/ci/gitlab-ci.yml new file mode 100644 index 0000000..0d47235 --- /dev/null +++ b/build/ci/gitlab-ci.yml @@ -0,0 +1,21 @@ +image: golang:1.13 + +variables: + REPO_NAME: framagit.org/andinus/cetus + +before_script: + - mkdir -p $GOPATH/src/$REPO_NAME + - ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME/ + - cd $GOPATH/src/$REPO_NAME + +stages: + - build + - deploy + +compile: + stage: build + script: + - GOOS=openbsd GOARCH=amd64 go build ./cmd/cetus-nasa -o $CI_PROJECT_DIR/cetus-nasa-linux-amd64 + artifacts: + paths: + - cetus-nasa-linux-amd64 |