ci: add Authorization header to Coolify deploy webhooks
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
212b72c161
commit
b96c543c5c
1 changed files with 6 additions and 0 deletions
|
|
@ -37,9 +37,12 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
COOLIFY_WEBHOOK:
|
COOLIFY_WEBHOOK:
|
||||||
from_secret: COOLIFY_WEBHOOK_MAIN
|
from_secret: COOLIFY_WEBHOOK_MAIN
|
||||||
|
COOLIFY_TOKEN:
|
||||||
|
from_secret: COOLIFY_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- >
|
- >
|
||||||
curl -fsSX GET "$COOLIFY_WEBHOOK"
|
curl -fsSX GET "$COOLIFY_WEBHOOK"
|
||||||
|
-H "Authorization: Bearer $COOLIFY_TOKEN"
|
||||||
&& echo "Coolify deploy triggered (main)"
|
&& echo "Coolify deploy triggered (main)"
|
||||||
|| echo "WARNING: Coolify webhook failed"
|
|| echo "WARNING: Coolify webhook failed"
|
||||||
when:
|
when:
|
||||||
|
|
@ -52,9 +55,12 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
COOLIFY_WEBHOOK:
|
COOLIFY_WEBHOOK:
|
||||||
from_secret: COOLIFY_WEBHOOK_DEVELOP
|
from_secret: COOLIFY_WEBHOOK_DEVELOP
|
||||||
|
COOLIFY_TOKEN:
|
||||||
|
from_secret: COOLIFY_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- >
|
- >
|
||||||
curl -fsSX GET "$COOLIFY_WEBHOOK"
|
curl -fsSX GET "$COOLIFY_WEBHOOK"
|
||||||
|
-H "Authorization: Bearer $COOLIFY_TOKEN"
|
||||||
&& echo "Coolify deploy triggered (develop)"
|
&& echo "Coolify deploy triggered (develop)"
|
||||||
|| echo "WARNING: Coolify webhook failed"
|
|| echo "WARNING: Coolify webhook failed"
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue