summaryrefslogtreecommitdiff
path: root/script/build/linux
blob: 2e56b625c0fc9cd3a43c2c29da1b014e9bc37b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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}"