From 72c5743a6823e68f47ec3ca693fe097b9fec356a Mon Sep 17 00:00:00 2001 From: Flook Date: Thu, 17 Apr 2025 03:57:03 +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 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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"'