Compare commits
No commits in common. "2e085fc7c75e94c4ac09afc1dc4374b86b99f835" and "d683f8803820030b526a34799a3dace2feceb7f7" have entirely different histories.
2e085fc7c7
...
d683f88038
1 changed files with 7 additions and 6 deletions
|
|
@ -11,7 +11,8 @@ variables:
|
|||
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
branch: [main, dev, feature/*]
|
||||
branch: [main, develop]
|
||||
- event: pull_request
|
||||
|
||||
steps:
|
||||
# ── Build & Test ──────────────────────────────────────────────
|
||||
|
|
@ -48,20 +49,20 @@ steps:
|
|||
- event: push
|
||||
branch: main
|
||||
|
||||
# ── Notify Coolify (deploy webhook) — dev only ──────────────
|
||||
- name: deploy-dev
|
||||
# ── Notify Coolify (deploy webhook) — develop only ────────────
|
||||
- name: deploy-develop
|
||||
image: curlimages/curl:latest
|
||||
environment:
|
||||
COOLIFY_WEBHOOK:
|
||||
from_secret: COOLIFY_WEBHOOK_DEV
|
||||
from_secret: COOLIFY_WEBHOOK_DEVELOP
|
||||
COOLIFY_TOKEN:
|
||||
from_secret: COOLIFY_TOKEN
|
||||
commands:
|
||||
- >
|
||||
curl -fsSX GET "$COOLIFY_WEBHOOK"
|
||||
-H "Authorization: Bearer $COOLIFY_TOKEN"
|
||||
&& echo "Coolify deploy triggered (dev)"
|
||||
&& echo "Coolify deploy triggered (develop)"
|
||||
|| echo "WARNING: Coolify webhook failed"
|
||||
when:
|
||||
- event: push
|
||||
branch: dev
|
||||
branch: develop
|
||||
|
|
|
|||
Loading…
Reference in a new issue