This commit is contained in:
parent
c359783d22
commit
72c5743a68
15
.drone.yml
15
.drone.yml
@ -1,9 +1,16 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test-pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: say-hello
|
||||
image: alpine
|
||||
- name: Deploy to Server
|
||||
image: curlimages/curl:latest
|
||||
environment:
|
||||
WEBHOOK_URL:
|
||||
from_secret: WEBHOOK_URL
|
||||
WEBHOOK_SECRET:
|
||||
from_secret: WEBHOOK_SECRET
|
||||
BRANCH:
|
||||
from_secret: BRANCH
|
||||
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