chore: tornar smoke opcional via RUN_MACHINE_SMOKE

This commit is contained in:
Esdras Renan 2025-10-10 23:32:06 -03:00
parent a456a8e209
commit 35f50b2dd0

View file

@ -19,6 +19,7 @@ on:
env:
APP_DIR: /srv/apps/sistema
VPS_UPDATES_DIR: /var/www/updates
RUN_MACHINE_SMOKE: ${{ vars.RUN_MACHINE_SMOKE || secrets.RUN_MACHINE_SMOKE || 'false' }}
jobs:
changes:
@ -209,6 +210,9 @@ jobs:
- name: Smoke test — register + heartbeat
run: |
set -e
if [ "${RUN_MACHINE_SMOKE:-false}" != "true" ]; then
echo "RUN_MACHINE_SMOKE != true — pulando smoke test"; exit 0
fi
# Load MACHINE_PROVISIONING_SECRET from production .env on the host
if [ -f /srv/apps/sistema/.env ]; then
set -o allexport