-
Notifications
You must be signed in to change notification settings - Fork 40
86 lines (79 loc) · 2.05 KB
/
Copy pathdocker-smoke.yml
File metadata and controls
86 lines (79 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Docker Smoke
on:
pull_request:
paths:
- "deploy/docker/**"
- "platform/**"
- "surfaces/**"
- "integrations/**"
- "libs/**"
- "dist/**"
- "plugins/**"
- "runtimes/**"
- "scripts/**"
- "public/**"
- "web/**"
- "package.json"
- "bun.lock"
- "bunfig.toml"
- "tsconfig*.json"
- "biome.json"
- "README.md"
- "AGENTS.md"
- "CLAUDE.md"
- "LICENSE"
push:
branches:
- main
paths:
- "deploy/docker/**"
- "platform/**"
- "surfaces/**"
- "integrations/**"
- "libs/**"
- "dist/**"
- "plugins/**"
- "runtimes/**"
- "scripts/**"
- "public/**"
- "web/**"
- "package.json"
- "bun.lock"
- "bunfig.toml"
- "tsconfig*.json"
- "biome.json"
- "README.md"
- "AGENTS.md"
- "CLAUDE.md"
- "LICENSE"
permissions:
contents: read
jobs:
smoke:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and start stack
run: |
SIGNET_HTTP_PORT=8080 SIGNET_HTTPS_PORT=8443 docker compose -f deploy/docker/compose.yml up -d --build || {
docker compose -f deploy/docker/compose.yml logs signet 2>&1 || true
exit 1
}
- name: Wait for proxy readiness
run: |
for _ in $(seq 1 40); do
code="$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/health || true)"
if [ "$code" = "200" ] || [ "$code" = "401" ] || [ "$code" = "301" ] || [ "$code" = "302" ] || [ "$code" = "307" ] || [ "$code" = "308" ]; then
exit 0
fi
sleep 3
done
echo "proxy endpoint did not become ready"
docker compose -f deploy/docker/compose.yml ps
docker compose -f deploy/docker/compose.yml logs
exit 1
- name: Stop stack
if: always()
run: docker compose -f deploy/docker/compose.yml down -v