ทดสอบ DevSecOps
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Flook 2025-02-01 04:22:47 +07:00
parent 54f2cb8b24
commit 73a294b7a1
2 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,18 @@ type: docker
name: default name: default
steps: 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 - name: Deploy to Server
image: curlimages/curl:latest image: curlimages/curl:latest
environment: environment:

View File

@ -2,7 +2,7 @@ function App() {
return ( return (
<div className="flex flex-col items-center justify-center min-h-screen py-2"> <div className="flex flex-col items-center justify-center min-h-screen py-2">
<h1 className="text-3xl font-bold underline text-center">สวสด! ทดสอบ CI/CD ตโนมสำเร</h1> <h1 className="text-3xl font-bold underline text-center">สวสด! ทดสอบ DevSecOps ตโนมสำเร</h1>
</div> </div>
) )
} }