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

26 lines
552 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
BRANCH_NAME: "BRANCH"
commands:
- 'curl -X POST "$WEBHOOK_URL" -H "Authorization: Bearer $WEBHOOK_SECRET" -F "branch=$BRANCH_NAME"'