|
|
|
@ -7,9 +7,9 @@ trigger:
|
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
# Étape 1 : Construire et pousser l'image Docker
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/clement.freville2/plugins/kaniko:latest
|
|
|
|
|
# Étape 1 : Construire et pousser l'image Docker PostgreSQL
|
|
|
|
|
- name: build-and-push-database
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
|
context: .
|
|
|
|
@ -19,10 +19,9 @@ steps:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
registry_mirrors: https://proxy.iut.uca.fr:8443
|
|
|
|
|
|
|
|
|
|
# Étape 2 : Déployer le conteneur Docker
|
|
|
|
|
- name: deploy-container
|
|
|
|
|
# Étape 2 : Déployer le conteneur PostgreSQL
|
|
|
|
|
- name: deploy-database
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
environment:
|
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/wikifantasy/wf-database:latest
|
|
|
|
@ -37,4 +36,4 @@ steps:
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
|
|
|
|
|
from_secret: POSTGRES_USER
|
|
|
|
|
depends_on:
|
|
|
|
|
- docker-build-and-push
|
|
|
|
|
- build-and-push-database
|
|
|
|
|