|
|
@ -3,14 +3,29 @@ type: docker
|
|
|
|
name: default
|
|
|
|
name: default
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# 🐳 Étape de build et push dans la registry CodeFirst
|
|
|
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
|
|
|
settings:
|
|
|
|
|
|
|
|
dockerfile: portfolio_siwa/Dockerfile
|
|
|
|
|
|
|
|
context: .
|
|
|
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/jean.marcillac/portfolio-siwa
|
|
|
|
|
|
|
|
username:
|
|
|
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
|
|
|
password:
|
|
|
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- latest
|
|
|
|
|
|
|
|
no_cache: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 🚀 Étape de déploiement sur CodeFirst (création/MAJ du container)
|
|
|
|
- name: deploy-container
|
|
|
|
- name: deploy-container
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
IMAGENAME: registry.devalada.valorium-mc.fr/portfolio-siwa:latest
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/jean.marcillac/portfolio-siwa:latest
|
|
|
|
CONTAINERNAME: portfolio
|
|
|
|
CONTAINERNAME: portfolio
|
|
|
|
COMMAND: create
|
|
|
|
COMMAND: create
|
|
|
|
OVERWRITE: true
|
|
|
|
OVERWRITE: true
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DOCKER_USERNAME:
|
|
|
|
depends_on:
|
|
|
|
from_secret: DOCKER_USERNAME
|
|
|
|
- docker-build-and-push
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DOCKER_PASSWORD:
|
|
|
|
|
|
|
|
from_secret: DOCKER_PASSWORD
|
|
|
|
|
|
|
|