This commit is contained in:
parent
c359783d22
commit
72c5743a68
15
.drone.yml
15
.drone.yml
@ -1,9 +1,16 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test-pipeline
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: say-hello
|
- name: Deploy to Server
|
||||||
image: alpine
|
image: curlimages/curl:latest
|
||||||
|
environment:
|
||||||
|
WEBHOOK_URL:
|
||||||
|
from_secret: WEBHOOK_URL
|
||||||
|
WEBHOOK_SECRET:
|
||||||
|
from_secret: WEBHOOK_SECRET
|
||||||
|
BRANCH:
|
||||||
|
from_secret: BRANCH
|
||||||
commands:
|
commands:
|
||||||
- echo "Hello from Drone CI!"
|
- 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user