mirror of https://github.com/docker/compose.git
21 lines
383 B
Bash
Executable File
21 lines
383 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"
|
|
|
|
VERSION="$(python setup.py --version)"
|
|
|
|
DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
|
|
echo "${DOCKER_COMPOSE_GITSHA}" > compose/GITSHA
|
|
python setup.py sdist bdist_wheel
|
|
|
|
docker build \
|
|
--build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}" \
|
|
-t "${TAG}" .
|