Fix การทดสอบ CI/CD
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Flook 2025-04-15 08:12:15 +07:00
parent 541c494cc1
commit d7621e3c8d

View File

@ -16,14 +16,6 @@ steps:
- npm install - npm install
- npm run build - npm run build
- name: Build Full Stack via Docker Compose
image: docker:24.0.5-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker compose -f docker-compose.yml build
- name: Run SonarQube Scan - name: Run SonarQube Scan
image: sonarsource/sonar-scanner-cli image: sonarsource/sonar-scanner-cli
environment: environment:
@ -60,9 +52,7 @@ steps:
WEBHOOK_SECRET: WEBHOOK_SECRET:
from_secret: WEBHOOK_SECRET from_secret: WEBHOOK_SECRET
commands: commands:
- 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"' - >
curl -X POST -H "Content-Type: application/json"
volumes: -H "Authorization: Bearer $WEBHOOK_SECRET"
- name: dockersock -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"
host:
path: /var/run/docker.sock