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

This commit is contained in:
Flook 2025-01-31 17:38:04 +07:00
parent aad434834e
commit d6e8c389ac

View File

@ -3,16 +3,6 @@ type: docker
name: default
steps:
- name: Install dependencies
image: node:18-alpine
commands:
- npm ci
- name: Build
image: node:18-alpine
commands:
- npm run build
- name: Deploy to Server
image: curlimages/curl:latest
environment:
@ -21,4 +11,8 @@ steps:
WEBHOOK_SECRET:
from_secret: WEBHOOK_SECRET
commands:
- 'curl -X POST "$WEBHOOK_URL" -H "Authorization: Bearer $WEBHOOK_SECRET"'
- "curl -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer ${WEBHOOK_SECRET}' ${WEBHOOK_URL}"
trigger:
branch:
- master