chore: tornar smoke opcional via RUN_MACHINE_SMOKE
This commit is contained in:
parent
a456a8e209
commit
35f50b2dd0
1 changed files with 4 additions and 0 deletions
4
.github/workflows/ci-cd-web-desktop.yml
vendored
4
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue