Update buildnow.sh

This commit is contained in:
kx1t
2023-12-03 16:23:26 -05:00
committed by GitHub
parent 7503e80ee0
commit f72f3af8d8

View File

@@ -25,9 +25,9 @@ git pull -a
a="$(mktemp)"
cp -f Dockerfile "$a"
if grep -qi "darwin" <<< "$(uname -a)"; then
sed -i '' "s/##main##/$BRANCH" Dockerfile
sed -i '' "s/##main##/$BRANCH/g" Dockerfile
else
sed -i "s/##main##/$BRANCH" Dockerfile
sed -i "s/##main##/$BRANCH/g" Dockerfile
fi
docker buildx build -f Dockerfile --compress --push $2 --platform $ARCHS --tag "$IMAGE1" .
# [[ $? ]] && docker buildx build --compress --push $2 --platform $ARCHS --tag $IMAGE2 .