Skip to content

Commit 899a612

Browse files
dahliaclaude
andcommitted
Fix Stalwart service health check in CI
- Add volume mount for persistent data (/tmp/stalwart-data) - Match health check settings with docker-compose.yml - Increase start period to 60s for slower startup Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 66ad15a commit 899a612

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/main.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525
- 8080:8080 # HTTP/JMAP port
2626
env:
2727
STALWART_ADMIN_PASSWORD: admin123
28+
volumes:
29+
- /tmp/stalwart-data:/opt/stalwart
2830
options: >-
2931
--health-cmd="curl -sf http://localhost:8080/ || exit 1"
30-
--health-interval=10s
31-
--health-timeout=5s
32-
--health-retries=5
33-
--health-start-period=30s
32+
--health-interval=30s
33+
--health-timeout=10s
34+
--health-retries=3
35+
--health-start-period=60s
3436
env:
3537
MAILPIT_SMTP_HOST: localhost
3638
MAILPIT_SMTP_PORT: 1025
@@ -87,12 +89,14 @@ jobs:
8789
- 8080:8080 # HTTP/JMAP port
8890
env:
8991
STALWART_ADMIN_PASSWORD: admin123
92+
volumes:
93+
- /tmp/stalwart-data:/opt/stalwart
9094
options: >-
9195
--health-cmd="curl -sf http://localhost:8080/ || exit 1"
92-
--health-interval=10s
93-
--health-timeout=5s
94-
--health-retries=5
95-
--health-start-period=30s
96+
--health-interval=30s
97+
--health-timeout=10s
98+
--health-retries=3
99+
--health-start-period=60s
96100
env:
97101
MAILPIT_SMTP_HOST: localhost
98102
MAILPIT_SMTP_PORT: 1025
@@ -154,12 +158,14 @@ jobs:
154158
- 8080:8080 # HTTP/JMAP port
155159
env:
156160
STALWART_ADMIN_PASSWORD: admin123
161+
volumes:
162+
- /tmp/stalwart-data:/opt/stalwart
157163
options: >-
158164
--health-cmd="curl -sf http://localhost:8080/ || exit 1"
159-
--health-interval=10s
160-
--health-timeout=5s
161-
--health-retries=5
162-
--health-start-period=30s
165+
--health-interval=30s
166+
--health-timeout=10s
167+
--health-retries=3
168+
--health-start-period=60s
163169
env:
164170
MAILPIT_SMTP_HOST: localhost
165171
MAILPIT_SMTP_PORT: 1025

0 commit comments

Comments
 (0)