From 56290b674501faf81608a57a1bdf595811f1509c Mon Sep 17 00:00:00 2001 From: Flook Date: Sun, 13 Apr 2025 09:55:38 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=A3=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=81=E0=B8=A5=E0=B8=B1=E0=B8=9A=E0=B8=A1=E0=B8=B2=E0=B8=9E?= =?UTF-8?q?=E0=B8=B1=E0=B8=92=E0=B8=99=E0=B8=B2=20frontend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6f82fae --- /dev/null +++ b/.drone.yml @@ -0,0 +1,28 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: SonarQube Scan + image: sonarsource/sonar-scanner-cli + environment: + SONAR_HOST_URL: + from_secret: SCANNER_HOST_URL + SONAR_LOGIN: + from_secret: SCANNER_LOGIN + SONAR_TOKEN: + from_secret: SCANNER_TOKEN + commands: + - mkdir -p /tmp/.scannerwork + - chmod -R 777 /tmp/.scannerwork + - sonar-scanner -Dsonar.projectKey=gitea_opengis -Dsonar.login=$SONAR_LOGIN -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.token=$SONAR_TOKEN -Dsonar.working.directory=/tmp/.scannerwork + + - name: Deploy to Server + image: curlimages/curl:latest + environment: + WEBHOOK_URL: + from_secret: WEBHOOK_URL + WEBHOOK_SECRET: + from_secret: WEBHOOK_SECRET + commands: + - 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"'