From d6e8c389ac0e245a0c4ab03eadfc93749a2b760a Mon Sep 17 00:00:00 2001 From: Flook Date: Fri, 31 Jan 2025 17:38:04 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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