fix(ci): pin Stalwart to v0.14.1 and fix local start script

This commit is contained in:
GuettliBot2
2026-05-17 14:24:06 +02:00
parent a22a4d1015
commit 982618c9fe
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (m *Ci) Stalwart() *dagger.Service {
config := m.Source.Directory("stalwart-dev").File("config.toml")
return dag.Container().
From("stalwartlabs/stalwart:latest").
From("stalwartlabs/stalwart:v0.14.1").
WithFile("/etc/stalwart/config.toml", config).
// Create data dir in /tmp where permissions are usually more relaxed.
WithExec([]string{"/bin/sh", "-c", "mkdir -p /tmp/stalwart && chmod 777 /tmp/stalwart"}).
+5 -5
View File
@@ -67,11 +67,11 @@ echo "Connection info written to ${TMPDIR}/ports.env" >&2
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
sed -e "s|127.0.0.1:8080|127.0.0.1:${STALWART_PORT}|" \
-e "s|127.0.0.1:1430|127.0.0.1:${STALWART_IMAP_PORT}|" \
-e "s|127.0.0.1:1025|127.0.0.1:${STALWART_SMTP_PORT}|" \
-e "s|127.0.0.1:4190|127.0.0.1:${STALWART_SIEVE_PORT}|" \
-e "s|/tmp/stalwart-dev|${TMPDIR}|" \
sed -e "s|0.0.0.0:8080|0.0.0.0:${STALWART_PORT}|" \
-e "s|0.0.0.0:1430|0.0.0.0:${STALWART_IMAP_PORT}|" \
-e "s|0.0.0.0:1025|0.0.0.0:${STALWART_SMTP_PORT}|" \
-e "s|0.0.0.0:4190|0.0.0.0:${STALWART_SIEVE_PORT}|" \
-e "s|/tmp/stalwart|${TMPDIR}|" \
"${REPO_ROOT}/stalwart-dev/config.toml" >"${TMPDIR}/config.toml"
exec stalwart --config "${TMPDIR}/config.toml"