From a1cb6b2dd9cfefd1d48aaff91553282cfe17ace4 Mon Sep 17 00:00:00 2001 From: yoyo930021 Date: Sun, 31 Mar 2024 19:40:51 +0800 Subject: [PATCH] chore: add deploy webhook --- .github/workflows/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7dd6c80..497267b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx 🛠 uses: docker/setup-buildx-action@v3 - - name: Log in to the Container registry 🚀 + - name: Log in to the Container registry 🔑 uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -40,4 +40,10 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + - name: Trigger deploy webhook 🚀 + env: + WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} + WEBHOOK_TOKEN: ${{ secrets.WEBHOOK_TOKEN }} + run: | + curl "$WEBHOOK_URL" -H "Authorization: Bearer $WEBHOOK_TOKEN"