mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
simplify docker deployment
This commit is contained in:
parent
528938942a
commit
4ef98b7448
21
deploy.sh
21
deploy.sh
@ -10,6 +10,9 @@
|
|||||||
# docker buildx use tubearchivist
|
# docker buildx use tubearchivist
|
||||||
# docker buildx inspect --bootstrap
|
# docker buildx inspect --bootstrap
|
||||||
|
|
||||||
|
# more details:
|
||||||
|
# https://github.com/bbilly1/tubearchivist/issues/6
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function sync_blackhole {
|
function sync_blackhole {
|
||||||
@ -119,20 +122,14 @@ function sync_docker {
|
|||||||
printf "\ncreate new version:\n"
|
printf "\ncreate new version:\n"
|
||||||
read -r VERSION
|
read -r VERSION
|
||||||
|
|
||||||
# start build
|
echo "build and push $VERSION?"
|
||||||
sudo docker buildx build --platform linux/amd64,linux/arm64 -t bbilly1/tubearchivist:latest -t bbilly1/tubearchivist:"$VERSION" .
|
|
||||||
|
|
||||||
printf "\nlatest images:\n"
|
|
||||||
sudo docker image ls bbilly1/tubearchivist
|
|
||||||
|
|
||||||
echo "continue?"
|
|
||||||
read -rn 1
|
read -rn 1
|
||||||
|
|
||||||
# push to docker
|
# start build
|
||||||
echo "pushing multiarch latest and $VERSION:"
|
sudo docker buildx build \
|
||||||
sudo docker buildx build --platform linux/amd64,linux/arm64 -t bbilly1/tubearchivist:latest -t bbilly1/tubearchivist:"$VERSION" --push .
|
--platform linux/amd64,linux/arm64 \
|
||||||
#sudo docker push bbilly1/tubearchivist:latest
|
-t bbilly1/tubearchivist:latest \
|
||||||
#sudo docker push bbilly1/tubearchivist:"$VERSION"
|
-t bbilly1/tubearchivist:"$VERSION" --push .
|
||||||
|
|
||||||
# create release tag
|
# create release tag
|
||||||
echo "commits since last version:"
|
echo "commits since last version:"
|
||||||
|
Loading…
Reference in New Issue
Block a user