Commit cfbdd08b authored by Nicolas Vuillermet's avatar Nicolas Vuillermet
Browse files

Mettre à jour .gitlab-ci.yml, Dockerfile files

parents
Pipeline #7685 failed with stages
---
image: docker:stable
variables:
IMAGE: $CI_REGISTRY_IMAGE
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
stages:
- build
- test
- push
services:
- docker:19.03.8-dind
Build docker image:
stage: build
before_script: &before_script
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t $IMAGE:$CI_COMMIT_SHA .
- docker push $IMAGE:$CI_COMMIT_SHA
Push image:
stage: push
before_script: *before_script
script:
- docker pull $IMAGE:$CI_COMMIT_SHA
- docker tag $IMAGE:$CI_COMMIT_SHA $IMAGE:latest
- docker push $IMAGE:latest
FROM docker:19.03.8-dind
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment