You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

4 months ago
kind: pipeline
type: docker
4 months ago
name: Deploiement
4 months ago
4 months ago
trigger:
event:
- push
4 months ago
4 months ago
steps:
3 months ago
# Étape 1 : Construire et pousser l'image Docker PostgreSQL
- name: build-and-push-database
image: plugins/docker
4 months ago
settings:
dockerfile: docker/Dockerfile
3 months ago
context: .
4 months ago
registry: hub.codefirst.iut.uca.fr
3 months ago
repo: hub.codefirst.iut.uca.fr/wikifantasy/wf-database
4 months ago
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
3 months ago
3 months ago
# Étape 2 : Déployer le conteneur PostgreSQL
- name: deploy-database
3 months ago
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
4 months ago
environment:
3 months ago
IMAGENAME: hub.codefirst.iut.uca.fr/wikifantasy/wf-database:latest
3 months ago
CONTAINERNAME: wf-database
4 months ago
COMMAND: create
3 months ago
OVERWRITE: true
4 months ago
PRIVATE: true
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
from_secret: POSTGRES_PASSWORD
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
from_secret: POSTGRES_DB
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
from_secret: POSTGRES_USER
3 months ago
depends_on:
3 months ago
- build-and-push-database
- name: list-containers
image: docker:20.10
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker ps -a