-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
VERSION=1.0.1 | ||
|
||
docker build -t bluet/vback . | ||
docker scan bluet/vback:latest | ||
|
||
docker tag bluet/vback:latest bluet/vback:${VERSION} | ||
git tag "${VERSION}" -a -m "vback ${VERSION}" | ||
git push | ||
git push --tags | ||
|
||
# Fixes busybox trigger error https://github.com/tonistiigi/xx/issues/36#issuecomment-926876468 | ||
docker run --privileged -it --rm tonistiigi/binfmt --install all | ||
|
||
docker buildx create --use | ||
|
||
while true; do | ||
read -p "Have I Updated VERSION Info? (Is current VERSION=${VERSION} ?) [y/N]" yn | ||
case $yn in | ||
[Yy]* ) docker buildx build -t bluet/vback:latest -t bluet/vback:${VERSION} --platform linux/amd64,linux/arm64/v8,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6 --push .; break;; | ||
[Nn]* ) exit;; | ||
* ) echo "";; | ||
esac | ||
done | ||
|
||
|