mirror of https://github.com/docker/compose.git
19 lines
412 B
Bash
Executable File
19 lines
412 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ -z "$1" ]; then
|
|
>&2 echo "First argument must be image tag."
|
|
exit 1
|
|
fi
|
|
|
|
TAG="$1"
|
|
IMAGE="docker/compose-tests"
|
|
|
|
DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
|
|
docker build -t "${IMAGE}:${TAG}" . \
|
|
--target build \
|
|
--build-arg BUILD_PLATFORM="debian" \
|
|
--build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}"
|
|
docker tag "${IMAGE}":"${TAG}" "${IMAGE}":latest
|