mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 21:30:11 +00:00
update build script
This commit is contained in:
parent
93d362bcc9
commit
21395e7ebf
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ BASETARGET2=kx1t
|
||||||
IMAGE1="$BASETARGET1/$(pwd | sed -n 's|.*/\(docker-.*\)|\1|p'):$TAG"
|
IMAGE1="$BASETARGET1/$(pwd | sed -n 's|.*/\(docker-.*\)|\1|p'):$TAG"
|
||||||
IMAGE2="$BASETARGET2/$(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
|
read
|
||||||
|
|
||||||
|
@ -32,6 +32,6 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker buildx build -f Dockerfile --compress --push $2 --platform $ARCHS --tag "$IMAGE1" .
|
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
|
mv -f Dockerfile.tmp-backup Dockerfile
|
||||||
echo "Total build time: $(( $(date +%s) - starttime )) seconds"
|
echo "Total build time: $(( $(date +%s) - starttime )) seconds"
|
||||||
|
|
Loading…
Reference in a new issue