Skip to content

Commit

Permalink
dist/buildx: fix test "$type" == "app" &&
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Oct 8, 2024
1 parent cf273d6 commit 2fb683e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions distros/buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ function print_time_cost(){
" 共历时" systime()-'$begin_time' "秒";
}'
}
PLAT0="--platform linux/amd64,linux/arm64,linux/arm"
test "$type" != "app" && PLAT0="--platform linux/amd64,linux/arm64" #app:none-armv7
function doBuildx(){
local tag=$1
local dockerfile=$2
Expand Down Expand Up @@ -89,6 +87,10 @@ type=$1; dist=$2
dver=$3; latest=$4; test -z "$dver" && dver=errVer
tag=$type-$dist-$dver

# PLAT0
PLAT0="--platform linux/amd64,linux/arm64,linux/arm"
test "$type" == "app" && PLAT0="--platform linux/amd64,linux/arm64" #app:none-armv7

# :> /tmp/.timecost #only clear @gitac
begin_time="`gawk 'BEGIN{print systime()}'`"; echo "[$tag]" $begin_time >> /tmp/.timecost
case "$dist" in
Expand Down

0 comments on commit 2fb683e

Please sign in to comment.