From 73a294b7a1a4674f42baaa8e6f2467531db7dda8 Mon Sep 17 00:00:00 2001 From: Flook Date: Sat, 1 Feb 2025 04:22:47 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=20DevSecOps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 12 ++++++++++++ src/App.jsx | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c48c797..2368aae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,18 @@ 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: + - sonar-scanner -Dsonar.projectKey=gitea/opengis -Dsonar.login=$SONAR_LOGIN -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.token=$SONAR_TOKEN + - name: Deploy to Server image: curlimages/curl:latest environment: diff --git a/src/App.jsx b/src/App.jsx index 59b6098..a14f657 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2,7 +2,7 @@ function App() { return (
-

สวัสดี! ทดสอบ CI/CD อัตโนมัติสำเร็จ

+

สวัสดี! ทดสอบ DevSecOps อัตโนมัติสำเร็จ

) }