From 5df5f2da24409bf9537a9abce31c32a4ebd2cc7a Mon Sep 17 00:00:00 2001 From: DatTT127 Date: Mon, 20 Jul 2026 00:59:34 +0700 Subject: [PATCH] update ecr --- .gitea/workflows/backend-ecr-modal.yaml | 14 ++++++++++---- .gitea/workflows/deploy-cd-server.yaml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/backend-ecr-modal.yaml b/.gitea/workflows/backend-ecr-modal.yaml index 3d11bbd..bac573e 100644 --- a/.gitea/workflows/backend-ecr-modal.yaml +++ b/.gitea/workflows/backend-ecr-modal.yaml @@ -5,7 +5,7 @@ name: Backend EC - Modal Deployment on: push: - branches: ['**'] + branches: ["**"] workflow_dispatch: {} permissions: @@ -94,7 +94,7 @@ jobs: --platform linux/amd64 \ --push - notify-deploy: + notify-deploy: # notify-deploy is the "ring the doorbell" that tells your Lightsail server "new image is ready, go fetch it and restart." needs: build-and-push if: success() && github.event_name == 'push' runs-on: ubuntu-latest @@ -122,8 +122,14 @@ jobs: EOF SIG="sha256=$(openssl dgst -sha256 -hmac "${WEBHOOK_SECRET}" "$PAYLOAD" | cut -d' ' -f2)" echo "check the webhook URL ${DEPLOY_WEBHOOK_URL}" | base64 - curl -X POST "${DEPLOY_WEBHOOK_URL}" \ + echo "==> Payload:" + cat "$PAYLOAD" + echo "" + echo "==> Signature: ${SIG}" + RESPONSE=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X POST "${DEPLOY_WEBHOOK_URL}" \ -H "Content-Type: application/json" \ -H "X-Gitea-Signature: ${SIG}" \ - --data-binary "@${PAYLOAD}" + --data-binary "@${PAYLOAD}") + echo "==> Response:" + echo "$RESPONSE" rm -f "$PAYLOAD" \ No newline at end of file diff --git a/.gitea/workflows/deploy-cd-server.yaml b/.gitea/workflows/deploy-cd-server.yaml index a0a92fc..0ab9c11 100644 --- a/.gitea/workflows/deploy-cd-server.yaml +++ b/.gitea/workflows/deploy-cd-server.yaml @@ -2,7 +2,7 @@ name: Deploy CD Server on: push: - branches: ['**'] + branches: ['main'] paths: - 'workspace/sprint_1_2/CODEBASE/deps/implementation/CD_server/**'