Create a Docker image and deploy it

This commit is contained in:
2024-06-05 10:17:54 +02:00
parent 999dbee2c6
commit ab95e3d286
13 changed files with 269 additions and 2 deletions

View File

@@ -28,3 +28,40 @@ steps:
- php bin/phpunit
depends_on:
- install
- name: docker-image
image: plugins/docker
settings:
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/clement.freville2/herbarium
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
cache_from:
- hub.codefirst.iut.uca.fr/clement.freville2/herbarium:latest
depends_on:
- lint
- test
when:
branch:
- main
- ci/*
- name: deploy
image: hub.codefirst.iut.uca.fr/clement.freville2/codefirst-dockerproxy-clientdrone:latest
settings:
image: hub.codefirst.iut.uca.fr/clement.freville2/herbarium:latest
container: herbarium
command: create
overwrite: true
admins: clementfreville2
environment:
# Disable HTTPS redirection as it served by a reverse proxy
CODEFIRST_CLIENTDRONE_ENV_SERVER_NAME: http://codefirst.iut.uca.fr
depends_on:
- docker-image
when:
branch:
- main
- ci/*