This commit is contained in:
parent
54f2cb8b24
commit
73a294b7a1
12
.drone.yml
12
.drone.yml
@ -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:
|
||||||
|
|||||||
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user