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

25 lines
499 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"'