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.
45 lines
1.1 KiB
45 lines
1.1 KiB
kind: pipeline
|
|
type: docker
|
|
name: projetDeCamille
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: build
|
|
image: maven:3.8.4-openjdk-17
|
|
commands:
|
|
- mvn package
|
|
|
|
- name: test
|
|
image: maven:3.8.4-openjdk-17
|
|
commands:
|
|
- mvn test
|
|
|
|
- name: sonar
|
|
image: maven:3-eclipse-temurin-17-alpine
|
|
commands:
|
|
- mvn verify sonar:sonar -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar/ -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.projectKey=CICD_Java_Backend_Personal_Library_louis
|
|
settings:
|
|
sonar_token:
|
|
from_secret: SECRET_SONAR_LOGIN
|
|
depends_on: [build]
|
|
|
|
- name: swagger
|
|
image: hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer
|
|
failure: ignore
|
|
commands:
|
|
- ls swagger && /entrypoint.sh --type swagger --loc swagger/swagger.yaml
|
|
depends_on: [build]
|
|
|
|
# database container deployment
|
|
- name: deploy-container-mongo
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: mongo:6
|
|
CONTAINERNAME: mongo_for_personal_library
|
|
COMMAND: create
|
|
# OVERWRITE: false
|
|
PRIVATE: true
|
|
|