diff --git a/.drone.yml b/.drone.yml index 265dced..9a62087 100644 --- a/.drone.yml +++ b/.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!" \ No newline at end of file + - 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"'