Skip to content

Commit 21cc3e4

Browse files
committed
ci(deploy): always run Coolify Cloud deploy and pass token via env
Drop the job-level COOLIFY_WEBHOOK guard so the deploy step always runs. Expose COOLIFY_TOKEN and COOLIFY_WEBHOOK as step env vars rather than interpolating the secret into the script. Use --fail-with-body --silent --show-error so failed requests print the response body.
1 parent aed76d9 commit 21cc3e4

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎.github/workflows/production-build.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ jobs:
5656
permissions:
5757
contents: read
5858
packages: write
59-
env:
60-
COOLIFY_WEBHOOK: ${{ secrets.COOLIFY_WEBHOOK }}
6159
steps:
6260
- uses: docker/setup-buildx-action@v3
6361

@@ -75,7 +73,12 @@ jobs:
7573
${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:latest-aarch64 \
7674
--tag ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
7775
78-
- name: Deploy to Coolify
79-
if: env.COOLIFY_WEBHOOK != ''
76+
- name: Deploy to Coolify Cloud
77+
env:
78+
COOLIFY_TOKEN: ${{ secrets.COOLIFY_TOKEN }}
79+
COOLIFY_WEBHOOK: ${{ secrets.COOLIFY_WEBHOOK }}
8080
run: |
81-
curl --fail --request POST "$COOLIFY_WEBHOOK" --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
81+
curl --fail-with-body --silent --show-error \
82+
--request POST \
83+
--header "Authorization: Bearer $COOLIFY_TOKEN" \
84+
"$COOLIFY_WEBHOOK"

0 commit comments

Comments
 (0)