build-binaries 976 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. #
  3. # Build the release binaries
  4. #
  5. . "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
  6. function usage() {
  7. >&2 cat << EOM
  8. Build binaries for the release.
  9. This script requires that 'git config branch.${BRANCH}.release' is set to the
  10. release version for the release branch.
  11. EOM
  12. exit 1
  13. }
  14. BRANCH="$(git rev-parse --abbrev-ref HEAD)"
  15. VERSION="$(git config "branch.${BRANCH}.release")" || usage
  16. REPO=docker/compose
  17. # Build the binaries
  18. script/clean
  19. script/build/linux
  20. echo "Building the container distribution"
  21. script/build/image $VERSION
  22. echo "Building the compose-tests image"
  23. script/build/test-image $VERSION
  24. echo "Create a github release"
  25. # TODO: script more of this https://developer.github.com/v3/repos/releases/
  26. browser https://github.com/$REPO/releases/new
  27. echo "Don't forget to download the osx and windows binaries from appveyor/bintray\!"
  28. echo "https://dl.bintray.com/docker-compose/$BRANCH/"
  29. echo "https://ci.appveyor.com/project/docker/compose"
  30. echo