fix(e2e): build stack with release metadata
This commit is contained in:
1 parent
cbc4cf309d
commit
30216dd367
1 file changed
+5
-4
+5
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user