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.
49 lines
1.5 KiB
49 lines
1.5 KiB
kind: pipeline
|
|
type: docker
|
|
name: Témoignages_Formulaire
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
|
|
- name: image-app
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: ./Dockerfile
|
|
context: Source/
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire
|
|
username:
|
|
from_secret: SECRET_USERNAME
|
|
password:
|
|
from_secret: SECRET_PASSWD
|
|
|
|
- name: deploy-app
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/sae4.01_formulaire:latest
|
|
CONTAINERNAME: image-app
|
|
COMMAND: create
|
|
OVERWRITE: true
|
|
ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal
|
|
depends_on: [ image-app ]
|
|
|
|
- name: setup_PHP_for_SonarQube
|
|
image: sonarsource/sonar-scanner-cli
|
|
environment:
|
|
SONAR_TOKEN:
|
|
from_secret: SONARQ_TOKEN
|
|
commands:
|
|
- curl https://codefirst.iut.uca.fr/containers/Temoignages-coverage-image/coverage.xml -o /drone/src/coverage.xml
|
|
- sonar-scanner -Dsonar.projectKey=SAE4.01_FORMULAIRE
|
|
-Dsonar.sources=.
|
|
-Dsonar.inclusions=**/*.php
|
|
-Dsonar.login=$${SONAR_TOKEN}
|
|
-Dsonar.language=php
|
|
-Dsonar.host.url=https://codefirst.iut.uca.fr/sonar
|
|
-Dsonar.php.coverage.reportPaths=coverage.xml
|
|
depends_on: [ deploy-app ]
|
|
|