chore(go): scaffold module and add failing link tests
This commit is contained in:
@@ -25,14 +25,21 @@ repo_root="$(cd "$script_dir/.." && pwd)"
|
||||
run_docker_build() {
|
||||
echo "Building Docker image for behavior suite..."
|
||||
local build_log
|
||||
local -a build_cmd
|
||||
|
||||
if docker buildx version >/dev/null 2>&1; then
|
||||
build_cmd=(docker buildx build --load -f "$repo_root/docker/behavior/Dockerfile" -t homesick-behavior:latest "$repo_root")
|
||||
else
|
||||
build_cmd=(docker build -f "$repo_root/docker/behavior/Dockerfile" -t homesick-behavior:latest "$repo_root")
|
||||
fi
|
||||
|
||||
if [[ "$behavior_verbose" == "1" ]]; then
|
||||
docker-buildx build -f "$repo_root/docker/behavior/Dockerfile" -t homesick-behavior:latest "$repo_root"
|
||||
"${build_cmd[@]}"
|
||||
return
|
||||
fi
|
||||
|
||||
build_log="$(mktemp)"
|
||||
if ! docker-buildx build -f "$repo_root/docker/behavior/Dockerfile" -t homesick-behavior:latest "$repo_root" >"$build_log" 2>&1; then
|
||||
if ! "${build_cmd[@]}" >"$build_log" 2>&1; then
|
||||
cat "$build_log" >&2
|
||||
rm -f "$build_log"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user