diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..499e4aa6ef14c908de36c5254bc588169798184b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +# This file is a template, and might need editing before it works on your project. +# Official docker image. +image: docker:latest + +stages: + - build + +services: + - docker:18.09.7-dind + +variables: + DOCKER_DRIVER: overlay + DOCKER_HOST: tcp://localhost:2375 + + +before_script: + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY + +build-esa: + stage: build + + script: + - docker build --pull -t "$CI_REGISTRY/$CI_PROJECT_PATH:latest" . + - docker push "$CI_REGISTRY/$CI_PROJECT_PATH:latest" + only: + - master + + +