linux 407 B

12345678910111213141516
  1. #!/bin/bash
  2. set -ex
  3. ./script/clean
  4. DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
  5. docker build . \
  6. --target bin \
  7. --build-arg DISTRO=debian \
  8. --build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}" \
  9. --output dist/
  10. ARCH=$(uname -m)
  11. # Ensure that we output the binary with the same name as we did before
  12. mv dist/docker-compose-linux-amd64 "dist/docker-compose-Linux-${ARCH}"