fix(e2e): build stack with release metadata

This commit is contained in:
sam committed 2026-10-17 08:47:05 +11:00
1 parent 623e78e4b9
commit a7ba340219
1 file changed
+5 -4
+5 -4
View File
@@ -74,10 +74,11 @@ prepare() {
[ -f "$XDG_CONFIG_HOME/archie/config.toml" ] || cp "$repo/config.example.toml" "$XDG_CONFIG_HOME/archie/config.toml"
sed "s#^database_url = .*#database_url = \"postgres://archie@127.0.0.1:$pgport/archie?sslmode=disable\"#" \
"$repo/deployments/dev.toml" >"$dir/dev.toml"
local s
for s in "${services[@]}"; do
(cd "$repo" && go build -o "$dir/bin/$s" "./cmd/$s")
done
local version
version=$(git -C "$repo" describe --tags --exact-match --match 'v[0-9]*' 2>/dev/null || true)
version=${version#v}
[ -n "$version" ] || version="dev+$(git -C "$repo" rev-parse --short=12 HEAD)"
task --dir "$repo" --force build BIN_DIR="$dir/bin" GATEWAY_VERSION="$version" RUNTIME_VERSION="$version"
}
# spawn NAME DIR CMD...: a detached session leader, so stop takes its children.