diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-20 15:46:02 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:30 +0800 |
commit | f6e06ac35033f9e52b6b2e3ebfe623c23a39c338 (patch) | |
tree | de578e6d53a9a0947c966b623265f5a122793389 /.gitlab-ci.yml | |
parent | ce2828224362aad655adec7d190fd2f3adb33459 (diff) | |
download | go-tangerine-f6e06ac35033f9e52b6b2e3ebfe623c23a39c338.tar.gz go-tangerine-f6e06ac35033f9e52b6b2e3ebfe623c23a39c338.tar.zst go-tangerine-f6e06ac35033f9e52b6b2e3ebfe623c23a39c338.zip |
ci: add docker build and upload job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1c026c932..697487acd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ before_script: stages: - lint - test + - docker lint: stage: lint @@ -37,3 +38,20 @@ smoke: - pkill -15 -f gtan - ./test/run_test.sh --continue --smoke-test - ./build/recovery-test.sh + + +docker: + only: + - master + stage: docker + image: docker:stable + services: + - docker:dind + variables: + IMAGE: byzantinelab/go-tangerine + tags: + - golang + script: + - docker login -u $CI_REGISTRY_USER -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY + - docker build -t $IMAGE:latest . + - docker push $IMAGE:latest |