diff options
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e53243c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +variables: + TMP_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA + +include: + - local: .gitlab/test.yml + +stages: + - build + - test + - tag + - release + +default: + image: $TMP_IMAGE + +build commit: + image: docker:stable + stage: build + services: + - docker:stable-dind + script: + - docker info + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $TMP_IMAGE . + - docker image inspect $TMP_IMAGE --format='{{.Size}}' + - docker push $TMP_IMAGE |
