Skip to content

Commit

Permalink
chore:change PLATFORM field logic (OpenAtomFoundation#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
baerwang authored Jun 14, 2023
1 parent 81d1c79 commit 05a52a9
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,23 @@ then
TAG="pikadb/pika:$(git describe --tags --abbrev=0 --always)"
fi

# if Platform is not set, set it "linux/amd64"
if [ -z "$PLATFORM" ]
then
PLATFORM="linux/amd64"
fi

# if Platform is "all", set it "linux/amd64,linux/arm64,linux/arm"
if [ "$PLATFORM" = "all" ]
then
PLATFORM="linux/amd64,linux/arm,linux/arm64"
fi

# if Platform is not set, set it "linux/amd64"
if [ -z "$PLATFORM" ]
then
PLATFORM="linux/amd64"
fi

# if proxy is set, set it
PROXY=false
if [ -n "$proxy" ]
then
PROXY=true
else
PROXY=false
fi

# check if docker is installed
Expand Down

0 comments on commit 05a52a9

Please sign in to comment.