From 4b2b23dec0ceee0b3b6b597699b648001e21428e Mon Sep 17 00:00:00 2001 From: Victor Mylle Date: Sat, 13 May 2023 15:46:06 +0000 Subject: [PATCH] Added .drone.yml file --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8a9fad4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +kind: pipeline +name: sonarcube +type: docker + +steps: + - name: code-analysis + pull: if-not-exists + image: sonarsource/sonar-scanner-cli + commands: + - sonar-scanner -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.qualitygate.wait=true + environment: + SONAR_HOST: + from_secret: sonar_host + SONAR_TOKEN: + from_secret: sonar_token + SONAR_PROJECT_KEY: + from_secret: sonar_project_key + +trigger: + event: + - push