From 256c67cff658f0509b2cae4b49770f2b19fd00c3 Mon Sep 17 00:00:00 2001 From: Alexander Kreitner <180843591+Gl4dr3x@users.noreply.github.com> Date: Wed, 2 Dec 2026 15:49:56 +0100 Subject: [PATCH] ci: send the Coolify API token with the redeploy request Coolify's deploy endpoint answers 401 without a bearer token. Commit 0c81dca3 dropped the Authorization header and has failed the step on every push since. The token is back as a header, and both secrets reach curl through the environment, not the script text. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-custom.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-custom.yml b/.github/workflows/docker-custom.yml index dd0588d8e38e..20486327c389 100644 --- a/.github/workflows/docker-custom.yml +++ b/.github/workflows/docker-custom.yml @@ -55,6 +55,10 @@ jobs: cache-to: type=gha,mode=max,scope=docker-custom - name: Trigger Coolify redeployment + env: + COOLIFY_WEBHOOK_URL: ${{ secrets.COOLIFY_WEBHOOK_URL }} + COOLIFY_API_TOKEN: ${{ secrets.COOLIFY_WEBHOOK_APITOKEN }} run: | curl --silent --fail --show-error -X GET \ - "${{ secrets.COOLIFY_WEBHOOK_URL }}?force=true" + -H "Authorization: Bearer ${COOLIFY_API_TOKEN}" \ + "${COOLIFY_WEBHOOK_URL}?force=true"