From 6ed507d865346b21c190020991a57a7df0d1b932 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 20 Jul 2017 14:09:12 -0700 Subject: [PATCH] Scripts build and push compose-tests image Signed-off-by: Joffrey F --- script/build/test-image | 17 +++++++++++++++++ script/release/build-binaries | 3 +++ script/release/push-release | 4 ++++ 3 files changed, 24 insertions(+) create mode 100755 script/build/test-image diff --git a/script/build/test-image b/script/build/test-image new file mode 100755 index 000000000..216d63f9c --- /dev/null +++ b/script/build/test-image @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +if [ -z "$1" ]; then + >&2 echo "First argument must be image tag." + exit 1 +fi + +TAG=$1 + +docker build -t docker-compose-tests:tmp . +ctnr_id=$(docker create --entrypoint=tox docker-compose-tests:tmp) +docker commit $ctnr_id docker/compose-tests:latest +docker tag docker/compose-tests:latest docker/compose-tests:$TAG +docker rm -f $ctnr_id +docker rmi -f docker-compose-tests:tmp \ No newline at end of file diff --git a/script/release/build-binaries b/script/release/build-binaries index 9d4a606e2..a39b186d9 100755 --- a/script/release/build-binaries +++ b/script/release/build-binaries @@ -27,6 +27,9 @@ script/build/linux echo "Building the container distribution" script/build/image $VERSION +echo "Building the compose-tests image" +script/build/test-image $VERSION + echo "Create a github release" # TODO: script more of this https://developer.github.com/v3/repos/releases/ browser https://github.com/$REPO/releases/new diff --git a/script/release/push-release b/script/release/push-release index 9db6f6894..0578aaff8 100755 --- a/script/release/push-release +++ b/script/release/push-release @@ -54,6 +54,10 @@ git push $GITHUB_REPO $VERSION echo "Uploading the docker image" docker push docker/compose:$VERSION +echo "Uploading the compose-tests image" +docker push docker/compose-tests:latest +docker push docker/compose-tests:$VERSION + echo "Uploading package to PyPI" pandoc -f markdown -t rst README.md -o README.rst sed -i -e 's/logo.png?raw=true/https:\/\/github.com\/docker\/compose\/raw\/master\/logo.png?raw=true/' README.rst