Skip to content
Snippets Groups Projects

Deployment configuration

Merged Thibaut DE SAIVRE requested to merge deployment-configuration into master
1 file
+ 19
4
Compare changes
  • Side-by-side
  • Inline
+ 19
4
variables:
IMAGE_TAG: $registry.binets.fr/maxime.basse/psc-musique
# DEBUG: only launch this task on the branch deployment-configuration. TODO: master branch instead
PIPELINE_BRANCH: deployment-configuration
stages:
- ship
- deploy
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
- $PIPELINE_BRANCH
services:
# Run docker inside gitlab docker runners
- docker:dind
@@ -30,3 +30,18 @@ ship:docker:
- 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
trigger:deploy:
stage: deploy
only:
- $PIPELINE_BRANCH
when: manual
# Variables for br docker services
variables:
PROJECT: jazzbot
DOCKER_IMAGE: registry.gitlab.binets.fr/maxime.basse/psc-musique:latest
# Trigger br docker services deployment
trigger:
project: br/docker-services
Loading