You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 73cb52e
Browse filesBrowse the repository at this point in the historyBrowse files
ci(sb2): restore the single Coolify webhook redeploy
Reverts the workflow part of f82a4f9. The step-level env was visible to the
step's if after all (the webhook fired on 40de5bc), and development
deploys use the same COOLIFY_WEBHOOK, so the per-branch secret only made
development skip its redeploy. The STUDIO_IMAGE_TAG pin is dropped too: the
CI webhook redeploy already pulls the image it just pushed.
echo "::warning title=Coolify redeploy skipped::Repository secret ${{ github.ref_name == 'master' && 'COOLIFY_WEBHOOK' || 'COOLIFY_WEBHOOK_DEVELOPMENT' }} is not set, so Coolify was not redeployed with this image."
68
-
69
-
# Pin the Coolify app to the image this run just built, then redeploy.
70
-
# A moving tag (:latest / :development) lets a redeploy pull a Studio
71
-
# built from a different commit than the compose file and agent it runs
72
-
# beside. Requires a STUDIO_IMAGE_TAG variable to exist on the Coolify
73
-
# application (the API only updates existing variables).
74
58
- name: Trigger Coolify redeploy
75
59
if: success() && env.COOLIFY_WEBHOOK != ''
76
60
env:
61
+
COOLIFY_WEBHOOK: ${{ secrets.COOLIFY_WEBHOOK }}
77
62
COOLIFY_TOKEN: ${{ secrets.COOLIFY_TOKEN }}
78
63
run: |
79
-
# The deploy webhook is <coolify>/api/v1/deploy?uuid=<app-uuid>[&...].
Copy file name to clipboardExpand all lines: docker/superbase2/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ Coolify expects a single compose file — it does not support the multi-file `-f
165
165
166
166
10. Deploy — Coolify pulls the pre-built Studio image from ghcr.io (fast, no build step).
167
167
168
-
11. (Optional) **Redeploy from CI.**`.github/workflows/build-studio-image.yml` builds the Studio image on pushes to `master` and `development`and can redeploy Coolify afterwards. Add GitHub secrets `COOLIFY_WEBHOOK` (master's app) and/or `COOLIFY_WEBHOOK_DEVELOPMENT` (a separate test app), plus`COOLIFY_TOKEN` (a Coolify API token with deploy and write access). Also create a `STUDIO_IMAGE_TAG` variable on each Coolify app: the workflow sets it to the commit SHA it just built before redeploying, so Studio always matches the compose file and agent deployed next to it.
168
+
11. (Optional) **Redeploy from CI.**`.github/workflows/build-studio-image.yml` builds the Studio image on pushes to `master`(`:latest`) and `development`(`:development`) that touch Studio, then calls the Coolify deploy webhook. Add GitHub secrets `COOLIFY_WEBHOOK` (the app's deploy webhook URL) and`COOLIFY_TOKEN` (a Coolify API token with deploy access). With auto-deploy on, a push deploys twice: Coolify deploys the compose and agent right away with the previous Studio image, then the webhook redeploys once CI has pushed the new one.
0 commit comments