- #!/bin/bash
- set -ex
- ./script/clean
- DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
- docker build . \
- --target bin \
- --build-arg DISTRO=debian \
- --build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}" \
- --output dist/
- ARCH=$(uname -m)
- # Ensure that we output the binary with the same name as we did before
- mv dist/docker-compose-linux-amd64 "dist/docker-compose-Linux-${ARCH}"
|