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:
|
||||
COOLIFY_WEBHOOK:
|
||||
from_secret: COOLIFY_WEBHOOK_MAIN
|
||||
COOLIFY_TOKEN:
|
||||
from_secret: COOLIFY_TOKEN
|
||||
commands:
|
||||
- >
|
||||
curl -fsSX GET "$COOLIFY_WEBHOOK"
|
||||
-H "Authorization: Bearer $COOLIFY_TOKEN"
|
||||
&& echo "Coolify deploy triggered (main)"
|
||||
|| echo "WARNING: Coolify webhook failed"
|
||||
when:
|
||||
|
|
@ -52,9 +55,12 @@ steps:
|
|||
environment:
|
||||
COOLIFY_WEBHOOK:
|
||||
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 (develop)"
|
||||
|| echo "WARNING: Coolify webhook failed"
|
||||
when:
|
||||
|
|
|
|||
Loading…
Reference in a new issue