d2/ci/release/build_docker.sh

22 lines
525 B
Bash
Raw Normal View History

2022-11-13 03:10:45 +00:00
#!/bin/sh
set -eu
cd -- "$(dirname "$0")/../.."
. ./ci/sub/lib.sh
tag="$(sh_c docker build \
2022-11-13 03:36:56 +00:00
--build-arg GOVERSION="1.19.3.linux-$ARCH" \
2022-11-13 03:10:45 +00:00
-qf ./ci/release/builders/Dockerfile ./ci/release/builders )"
sh_c docker run -it --rm \
-v "$HOME:$HOME" \
-u "$(id -u):$(id -g)" \
-w "$HOME" \
-e DRYRUN="${DRYRUN-}" \
-e HW_BUILD_DIR="$HW_BUILD_DIR" \
-e VERSION="$VERSION" \
-e OS="$OS" \
-e ARCH="$ARCH" \
-e ARCHIVE="$ARCHIVE" \
-e TERM="$TERM" \
2022-11-13 03:36:56 +00:00
-e HOME="$HOME" \
2022-11-13 03:10:45 +00:00
"$tag" ./src/d2/ci/release/_build.sh