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: env:
APP_DIR: /srv/apps/sistema APP_DIR: /srv/apps/sistema
VPS_UPDATES_DIR: /var/www/updates VPS_UPDATES_DIR: /var/www/updates
RUN_MACHINE_SMOKE: ${{ vars.RUN_MACHINE_SMOKE || secrets.RUN_MACHINE_SMOKE || 'false' }}
jobs: jobs:
changes: changes:
@ -209,6 +210,9 @@ jobs:
- name: Smoke test — register + heartbeat - name: Smoke test — register + heartbeat
run: | run: |
set -e 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 # Load MACHINE_PROVISIONING_SECRET from production .env on the host
if [ -f /srv/apps/sistema/.env ]; then if [ -f /srv/apps/sistema/.env ]; then
set -o allexport set -o allexport