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:
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue