opengis/.drone.yml
Flook 720cb93127
All checks were successful
continuous-integration/drone/push Build is passing
ทดสอบ CI/CD
2025-01-31 11:04:38 +07:00

24 lines
498 B
YAML

kind: pipeline
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:
WEBHOOK_URL:
from_secret: WEBHOOK_URL
WEBHOOK_SECRET:
from_secret: WEBHOOK_SECRET
commands:
- 'curl -X POST "$WEBHOOK_URL" -H "Authorization: Bearer $WEBHOOK_SECRET"'