Skip to content
Snippets Groups Projects

Deployment configuration

Merged Thibaut DE SAIVRE requested to merge deployment-configuration into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -24,10 +24,12 @@ ship:
DOCKER_TLS_CERTDIR: ""
script:
# Build docker image
- docker build --pull --cache-from registry.binets.fr/maxime.basse/psc-musique:latest -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
# Pull latest image to use as cache
- docker pull registry.binets.fr/maxime.basse/psc-musique:latest
# Build docker image using the latest as cache
- docker build --pull --cache-from registry.binets.fr/maxime.basse/psc-musique:latest -t registry.binets.fr/maxime.basse/psc-musique .
# Push the docker image to the registry
- docker push registry.binets.fr/maxime.basse/psc-musique
Loading