diff --git a/.drone.yml b/.drone.yml index d4a0d26..0c820e0 100644 --- a/.drone.yml +++ b/.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 \ No newline at end of file