Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Mar 28, 2023
1 parent 93d362b commit 21395e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildnow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BASETARGET2=kx1t
IMAGE1="$BASETARGET1/$(pwd | sed -n 's|.*/\(docker-.*\)|\1|p'):$TAG"
IMAGE2="$BASETARGET2/$(pwd | sed -n 's|.*/docker-\(.*\)|\1|p'):$TAG"

echo "press enter to start building $IMAGE1 and $IMAGE2 from $BRANCH"
echo "press enter to start building $IMAGE1 from $BRANCH"

read

Expand All @@ -32,6 +32,6 @@ else
fi

docker buildx build -f Dockerfile --compress --push $2 --platform $ARCHS --tag "$IMAGE1" .
[[ $? ]] && docker buildx build --compress --push $2 --platform $ARCHS --tag $IMAGE2 .
# [[ $? ]] && docker buildx build -f Dockerfile --compress --push $2 --platform $ARCHS --tag $IMAGE2 .
mv -f Dockerfile.tmp-backup Dockerfile
echo "Total build time: $(( $(date +%s) - starttime )) seconds"

0 comments on commit 21395e7

Please sign in to comment.