CI: deploy-pad/service/health rechtstreeks uit Gitea-variabelen (job-output met geheime waarde werd leeg); inputs-diagnose in deploy

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 15:40:45 +01:00
co-authored by Claude Sonnet 5.5
parent 323dd0f09e
commit eb6472ea61
2 changed files with 18 additions and 6 deletions
+8
View File
@@ -57,7 +57,15 @@ jobs:
SSH_PORT: ${{ secrets.PI_MAIN_PORT }}
SSH_HOST: ${{ secrets.PI_MAIN_ADDRESS }}
SSH_KEY: ${{ secrets.PI_MAIN_SSH_KEY }}
IN_DEPLOY_PATH: ${{ inputs.deploy_path }}
IN_SERVICE_NAME: ${{ inputs.service_name }}
IN_HEALTH_URL: ${{ inputs.health_check_url }}
run: |
# Inputs are not secret: print them so an empty one is visible, and stop before anything touches the host.
echo "Inputs: deploy_path='$IN_DEPLOY_PATH' service_name='$IN_SERVICE_NAME' health_check_url='$IN_HEALTH_URL'"
for v in IN_DEPLOY_PATH IN_SERVICE_NAME IN_HEALTH_URL; do
if [ -z "${!v}" ]; then echo "Input $v is empty; refusing to deploy."; exit 1; fi
done
SUDO=""
if [ "$(id -u)" != "0" ] && command -v sudo >/dev/null 2>&1; then SUDO="sudo"; fi
if ! command -v sshpass >/dev/null 2>&1 || ! command -v ssh >/dev/null 2>&1 || ! command -v scp >/dev/null 2>&1; then