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.

63 lines
2.3 KiB

kind: pipeline
type: docker
name: Deploiement
trigger:
event:
- push
steps:
- name: code-analysis
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-python37
settings:
sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_token:
from_secret: SECRET_SONAR_TOKEN
- name: docker-build-and-push
image: plugins/docker
settings:
dockerfile: docker/Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
mirror: https://proxy.iut.uca.fr:8443
repo: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/memorymap_api
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
- name: deploy-database
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
IMAGENAME: mongo:8.0.3-noble
CONTAINERNAME: memorymap_mongodb
COMMAND: create
OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_MONGO_INITDB_ROOT_USERNAME:
from_secret: SECRET_MONGODB_USERNAME
CODEFIRST_CLIENTDRONE_ENV_MONGO_INITDB_ROOT_PASSWORD:
from_secret: SECRET_MONGODB_PASSWORD
ADMINS: alixjeudi--lemoine,alexisferon,mathisframit,maxencejouannet
- name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
IMAGENAME: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/memorymap_api:latest
CONTAINERNAME: memorymap_api
COMMAND: create
OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_MONGODB_URL: "mongodb://memorymap_mongodb:27017/"
CODEFIRST_CLIENTDRONE_ENV_MONGODB_USERNAME:
from_secret: SECRET_MONGODB_USERNAME
CODEFIRST_CLIENTDRONE_ENV_MONGODB_PASSWORD:
from_secret: SECRET_MONGODB_PASSWORD
CODEFIRST_CLIENTDRONE_ENV_MONGODB_DATABASE:
from_secret: SECRET_MONGODB_DATABASE
CODEFIRST_CLIENTDRONE_ENV_JWT_SECRET_KEY:
from_secret: SECRET_JWT_SECRET_KEY
CODEFIRST_CLIENTDRONE_ENV_JWT_ALGORITHM:
from_secret: SECRET_JWT_ALGORITHM
CODEFIRST_CLIENTDRONE_ENV_JWT_ACCESS_TOKEN_EXPIRE_MINUTES:
from_secret: SECRET_JWT_ACCESS_TOKEN_EXPIRE_MINUTES
ADMINS: alixjeudi--lemoine,alexisferon,mathisframit,maxencejouannet