Skip to content

chore(docker): Set build config to allow to push prod tags

Killian Kemps requested to merge fix-docker-compose-prod into main

Détails

  • Docker : Utilise la configuration de build prod pour pousser les tags en prod

Explications

Le précédent déploiement en production a échoué car le mot-clé build était absent et les images Docker n'ont pas été poussées

DOCKER_IMAGE_TAG=$CI_COMMIT_TAG docker compose push
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_UID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_GID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_UID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_GID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_UID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_GID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"PUBLIC_DOMAIN\" variable is not set. Defaulting to a blank string."
 db Skipped 
 frontend Skipped 
 nginx Skipped 
 redis Skipped 
 server Skipped 
 worker Skipped 
$ docker tag $REGISTRY_PROJECT/backend:$CI_COMMIT_SHA $REGISTRY_PROJECT/backend:latest
$ docker tag $REGISTRY_PROJECT/frontend:$CI_COMMIT_SHA $REGISTRY_PROJECT/frontend:latest
$ docker tag $REGISTRY_PROJECT/db:$CI_COMMIT_SHA $REGISTRY_PROJECT/db:latest
$ docker tag $REGISTRY_PROJECT/nginx:$CI_COMMIT_SHA $REGISTRY_PROJECT/nginx:latest
$ DOCKER_IMAGE_TAG=latest docker compose push
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_UID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_GID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_UID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_GID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_UID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"DOCKER_GID\" variable is not set. Defaulting to a blank string."
time="2024-01-24T11:58:07+01:00" level=warning msg="The \"PUBLIC_DOMAIN\" variable is not set. Defaulting to a blank string."
 db Skipped 
 frontend Skipped 
 nginx Skipped 
 redis Skipped 
 server Skipped 
 worker Skipped 

Captures d'écran

Références

https://taches.cemea.org/b/bJJXFZxe6pRHN8uHy/dev-web/zoNHQHLepM2perj4d

Dépendances

Edited by Killian Kemps

Merge request reports

Loading