encore un
continuous-integration/drone/push Build is passing Details

master
Maxime ROCHER 5 months ago
parent ce56fddef8
commit 92cd05f36a

@ -1,33 +1,19 @@
kind: pipeline
type: docker
name: Deploiement
name: Deploiement-Database
trigger:
event:
- push
steps:
# Étape 1 : Construire et pousser l'image Docker PostgreSQL
- name: build-and-push-database
image: plugins/docker
settings:
dockerfile: docker/Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/wikifantasy/wf-database
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
# Étape 2 : Déployer le conteneur PostgreSQL
- name: deploy-database
- name: deploy-container-postgresql
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
IMAGENAME: hub.codefirst.iut.uca.fr/wikifantasy/wf-database:latest
CONTAINERNAME: wf-database
IMAGENAME: postgres:17-alpine
CONTAINERNAME: postgres-db
COMMAND: create
OVERWRITE: true
OVERWRITE: false # Change à `true` si tu veux remplacer le conteneur existant.
PRIVATE: true
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
from_secret: POSTGRES_PASSWORD
@ -35,13 +21,4 @@ steps:
from_secret: POSTGRES_DB
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
from_secret: POSTGRES_USER
depends_on:
- build-and-push-database
- name: list-containers
image: docker:20.10
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker ps -a
ADMINS: marocher8, maxime.rocher # Facultatif pour partager avec d'autres comptes.

Loading…
Cancel
Save