Skip to content

Commit

Permalink
hardcoding platforms -u should be considered to be unset
Browse files Browse the repository at this point in the history
  • Loading branch information
xunholy committed Mar 26, 2020
1 parent 77a9e13 commit eaf4ad9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/buildx-gen.sh
Expand Up @@ -16,11 +16,8 @@

set -eu

if [[ -z ${DOCKER_PLATFORMS} ]]; then
export DOCKER_PLATFORMS="linux/amd64,linux/arm64,linux/arm/v7"
fi
if ! docker buildx ls | grep -q container-builder; then
docker buildx create --driver-opt network=host --platform ${DOCKER_PLATFORMS} --name container-builder --use
docker buildx create --driver-opt network=host --platform "linux/amd64,linux/arm64,linux/arm/v7" --name container-builder --use
fi
docker buildx use container-builder

Expand Down

0 comments on commit eaf4ad9

Please sign in to comment.