From cf7f3bf27e7419ec472157f03234ec20db7793de Mon Sep 17 00:00:00 2001 From: James McLaughlin Date: Thu, 20 May 2021 13:16:19 +0100 Subject: [PATCH] add gitlab ci file --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..29a2cd40 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ + +build: + image: docker:18-git + stage: build + only: + - main + - stable + services: + - docker:18-dind + script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker build -t ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME-$CI_BUILD_ID . + - docker tag ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME-$CI_BUILD_ID ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME + - docker push ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME-$CI_BUILD_ID + - docker push ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME +