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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user