mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
This requires a change to the make-branch script, to have it push the bump branch to the docker remote instead of the user remote. Pushing to the docker remote triggers the travis build, which builds the binary. Signed-off-by: Daniel Nephin <dnephin@docker.com>
38 lines
902 B
Bash
Executable File
38 lines
902 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Build the release binaries
|
|
#
|
|
|
|
. "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
|
|
|
|
function usage() {
|
|
>&2 cat << EOM
|
|
Build binaries for the release.
|
|
|
|
This script requires that 'git config branch.${BRANCH}.release' is set to the
|
|
release version for the release branch.
|
|
|
|
EOM
|
|
exit 1
|
|
}
|
|
|
|
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
VERSION="$(git config "branch.${BRANCH}.release")" || usage
|
|
REPO=docker/compose
|
|
|
|
# Build the binaries
|
|
script/clean
|
|
script/build/linux
|
|
|
|
echo "Building the container distribution"
|
|
script/build/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
|
|
|
|
echo "Don't forget to download the osx and windows binaries from appveyor/bintray\!"
|
|
echo "https://dl.bintray.com/docker-compose/$BRANCH/"
|
|
echo "https://ci.appveyor.com/project/docker/compose"
|
|
echo
|