Skip to content
Snippets Groups Projects
Commit 5c5e01c8 authored by Nicolas PERNOUD's avatar Nicolas PERNOUD
Browse files

feat: added gitlab ci

parent 976327e4
Branches
No related tags found
No related merge requests found
Pipeline #3992 passed
image: docker:git
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
stages:
- build
build-master:
stage: build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
build:
stage: build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment