Chris Crone f825cec2fc build: Refactor to use BuildKit
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-09 18:19:02 +01:00

17 lines
407 B
Bash
Executable File

#!/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}"