Skip to content
Snippets Groups Projects
Commit d9391cc5 authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Update .gitlab-ci.yml

parent 65d50a43
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
image: docker:latest image: docker:latest
services: services:
- docker:dind - docker:dind
before_script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
stages: stages:
- build - build
- extract - extract
...@@ -16,6 +13,7 @@ stages: ...@@ -16,6 +13,7 @@ stages:
build: build:
stage: build stage: build
script: script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" . - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" .
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment