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