This commit is contained in:
parent
aad434834e
commit
d6e8c389ac
16
.drone.yml
16
.drone.yml
@ -3,16 +3,6 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: Deploy to Server
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
environment:
|
environment:
|
||||||
@ -21,4 +11,8 @@ steps:
|
|||||||
WEBHOOK_SECRET:
|
WEBHOOK_SECRET:
|
||||||
from_secret: WEBHOOK_SECRET
|
from_secret: WEBHOOK_SECRET
|
||||||
commands:
|
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