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.

41 lines
1.2 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
- name: docker-build-and-push
image: hub.codefirst.iut.uca.fr/clement.freville2/plugins/kaniko:latest
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
registry_mirrors: https://proxy.iut.uca.fr:8443
3 months ago
3 months ago
# Étape 2 : Déployer le conteneur Docker
- name: deploy-container
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:
- docker-build-and-push