Skip to content

Commit

Permalink
update variable substition due to CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
xunholy committed Mar 26, 2020
1 parent 86a8710 commit 77a9e13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/buildx-gen.sh
Expand Up @@ -16,8 +16,9 @@

set -eu

#
DOCKER_PLATFORMS=${${DOCKER_PLATFORMS}:-"linux/amd64,linux/arm64,linux/arm/v7"}
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
fi
Expand Down

0 comments on commit 77a9e13

Please sign in to comment.