This commit is contained in:
parent
aad434834e
commit
d6e8c389ac
16
.drone.yml
16
.drone.yml
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user