diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..5d921fbcd1ab58d13cad74a2add944dfd2b0dfc2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +# default template +# The docker image will be named after the branch name +# Feel free to modify this file in your own branch + +image: docker:latest +services: + - docker:dind + +variables: + CI_REGISTRY_IMAGE: "registry-gitlab.pasteur.fr/dsi-tools/docker-images" + +before_script: + - docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr + +build: + except: + - master + stage: build + script: + - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" . + - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"