fix: fix YAML syntax error in deploy step network verification
- Replace multi-line python3 -c with single-line to avoid YAML parser issue Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -244,16 +244,7 @@ jobs:
|
|||||||
|
|
||||||
# Verify both connections
|
# Verify both connections
|
||||||
echo "=== Network connections ==="
|
echo "=== Network connections ==="
|
||||||
docker inspect nas-dashboard-dev --format '{{json .NetworkSettings.Networks}}' | python3 -c "
|
docker inspect nas-dashboard-dev --format '{{json .NetworkSettings.Networks}}' | python3 -c 'import json,sys;nets=json.load(sys.stdin);[print(f" Connected to {n}") for n in nets];assert "nas-dashboard_internal" in nets and "gitea_gitea" in nets, "Missing required network";print("All network connections established")'
|
||||||
import json,sys
|
|
||||||
nets = json.load(sys.stdin)
|
|
||||||
for n in nets:
|
|
||||||
print(f' ✅ Connected to {n}')
|
|
||||||
if 'nas-dashboard_internal' not in nets or 'gitea_gitea' not in nets:
|
|
||||||
print('❌ Not connected to required networks')
|
|
||||||
sys.exit(1)
|
|
||||||
print('✅ All network connections established')
|
|
||||||
"
|
|
||||||
|
|
||||||
- name: Wait for container to be healthy
|
- name: Wait for container to be healthy
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user