From faacb4406e63303bd7d69ece9d4abdc928af1794 Mon Sep 17 00:00:00 2001 From: Dries Van Schuylenbergh Date: Sat, 25 Feb 2023 09:10:02 +0100 Subject: [PATCH] Add .drone.yml file --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..156af15 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +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.projectVersion=$DRONE_REPO_BRANCH-$DRONE_COMMIT-$DRONE_COMMIT_AUTHOR + environment: + SONAR_HOST: + from_secret: sonar_host + SONAR_TOKEN: + from_secret: sonar_token + SONAR_PROJECT_KEY: + from_secret: sonar_project_key + +trigger: + event: + - push + - pull_request