feat: implement automatic deploy to coolify instance

This commit is contained in:
JasterV 2026-04-25 02:20:35 +02:00
parent 6789fd3c08
commit a6022cc725

View file

@ -17,16 +17,16 @@ steps:
dockerfile: "Dockerfile"
tags: sha-${CI_COMMIT_SHA},latest
# deploy:
# image: alpine:latest
# environment:
# DEPLOY_URL:
# from_secret: COOLIFY_DEPLOY_WEBHOOK
# DEPLOY_TOKEN:
# from_secret: COOLIFY_DEPLOY_API_TOKEN
# commands:
# - apk add --no-cache curl
# - |
# curl --request GET "$${DEPLOY_URL}" \
# --header "Authorization: Bearer $${DEPLOY_TOKEN}" \
# --header "Content-Type: application/json"
deploy:
image: alpine:latest
environment:
DEPLOY_URL:
from_secret: COOLIFY_DEPLOY_WEBHOOK
DEPLOY_TOKEN:
from_secret: COOLIFY_DEPLOY_API_TOKEN
commands:
- apk add --no-cache curl
- |
curl --request GET "$DEPLOY_URL" \
--header "Authorization: Bearer $DEPLOY_TOKEN" \
--header "Content-Type: application/json"