Skip to content
Snippets Groups Projects

Deployment configuration

Merged Thibaut DE SAIVRE requested to merge deployment-configuration into master
+ 7
2
@@ -7,6 +7,11 @@ stages:
ship:docker:
stage: ship
image: docker:latest
only:
# DEBUG: only launch this task on the branch deployment-configuration
# Later on, replace this with the master branch
# (or another stable branch, if they want to commit directly on master)
- deployment-configuration
services:
# Run docker inside gitlab docker runners
- docker:dind
@@ -16,9 +21,9 @@ ship:docker:
# Needed to run docker inside docker
DOCKER_DRIVER: overlay2
script:
# Login to gitlab registry
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.binets.fr/maxime.basse/psc-musique
# Build docker image
- docker build -t registry.binets.fr/maxime.basse/psc-musique .
# Login to gitlab registry
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.binets.fr/maxime.basse/psc-musique
# Push the docker image to the registry
- docker push registry.binets.fr/maxime.basse/psc-musique
Loading