parent
fa28d2a335
commit
bf76ca2870
@ -1,62 +1,22 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: CI-pipeline
|
name: Deploiement
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: code-check
|
||||||
|
image: php:8.3-cli
|
||||||
- name: code-inspection
|
|
||||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet8
|
|
||||||
secrets: [ SECRET_SONAR_LOGIN ]
|
|
||||||
settings:
|
|
||||||
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
|
||||||
sonar_token:
|
|
||||||
from_secret: SECRET_SONAR_LOGIN
|
|
||||||
commands:
|
commands:
|
||||||
- dotnet sonarscanner begin /k:WF-Website /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
- php -l -d display_errors=On -d log_errors=Off -d error_reporting=E_ALL $(find . -name '*.php')
|
||||||
|
- echo "Code verification completed."
|
||||||
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
|
||||||
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
||||||
|
|
||||||
# database container deployment
|
|
||||||
#- name: deploy-container-mysql-WIKI_FANTASY
|
|
||||||
# image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
||||||
# environment:
|
|
||||||
# IMAGENAME: mysql:latest
|
|
||||||
# CONTAINERNAME: mysql
|
|
||||||
# COMMAND: create
|
|
||||||
# OVERWRITE: false
|
|
||||||
# PRIVATE: true
|
|
||||||
|
|
||||||
# CODEFIRST_CLIENTDRONE_ENV_MYSQL_ROOT_PASSWORD:
|
- name: code-analysis
|
||||||
# from_secret: db_root_password
|
image: aosapps/drone-sonar-plugin
|
||||||
# CODEFIRST_CLIENTDRONE_ENV_MYSQL_DATABASE:
|
settings:
|
||||||
# from_secret: db_database
|
sonar_host:
|
||||||
# CODEFIRST_CLIENTDRONE_ENV_MYSQL_USER:
|
from_secret: PathFinder_sonar_host
|
||||||
# from_secret: db_user
|
sonar_token:
|
||||||
# CODEFIRST_CLIENTDRONE_ENV_MYSQL_PASSWORD:
|
from_secret: PathFinder_sonar_token
|
||||||
# from_secret: db_password
|
|
||||||
# ADMINS: kentinbrongniart , kevinmondejar , lenibeaulaton , louisguichard-montguers , maximerocher , tommynguyen , matthieurestituito
|
|
||||||
|
|
||||||
|
|
||||||
- name: generate-and-deploy-docs
|
|
||||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
|
||||||
failure: ignore
|
|
||||||
volumes:
|
|
||||||
- name:
|
|
||||||
path:
|
|
||||||
commands:
|
|
||||||
- /entrypoint.sh
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
depends_on: []
|
|
Loading…
Reference in new issue