reze: Make the CI deploy step manual-only

Dokploy deploys are triggered from the UI, so the pipeline no longer runs on
push to trunk. The file stays as a template: it is a no-op unless DEPLOY_URL is
available, and the trigger can be switched back to push-on-trunk.
This commit is contained in:
2026-10-21 09:07:15 +00:00
parent 58f585b691
commit dfe3e94aa4
2 changed files with 25 additions and 11 deletions
+21 -8
View File
@@ -1,15 +1,28 @@
# Deploy template for reze-test.
#
# Automatic deploys are DISABLED: deployments are triggered from the Dokploy UI
# (or a Gitea webhook configured there), not from CI.
#
# This pipeline is manual-only and is a no-op unless a DEPLOY_URL value is
# available in the environment (set it as a Woodpecker repository variable, or
# declare it as a secret with `from_secret: DEPLOY_URL`).
#
# To turn this back into a push-to-deploy pipeline, change the trigger to:
#
# when:
# - event: push
# branch: trunk
#
# and make sure DEPLOY_URL is set. It needs access to the internal Dokploy
# network, hence `network_mode: dokploy-network`.
when:
- event: push
branch: trunk
- event: manual
steps:
deploy:
image: curlimages/curl:latest
# Needs Dokploy on the internal network; allowed because an admin marked this repo "trusted network".
# Pipelines otherwise run on the isolated ci-net (internet + git.kg only).
network_mode: dokploy-network
environment:
DEPLOY_URL:
from_secret: DEPLOY_URL
commands:
- 'curl -fsS -X POST "$${DEPLOY_URL}" -H "Content-Length: 0"'
- 'echo "reze-test: requesting redeploy from Dokploy..."'
- 'if [ -n "$${DEPLOY_URL}" ]; then curl -fsS -X POST "$${DEPLOY_URL}" -H "Content-Length: 0"; else echo "DEPLOY_URL is not set - deploy from the Dokploy UI instead."; fi'