From 4ef98b7448ed5b7ff08e84e0f391590f9a538fff Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 17 Oct 2021 13:29:22 +0700 Subject: [PATCH] simplify docker deployment --- deploy.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/deploy.sh b/deploy.sh index e1ee338..8ef2ac5 100755 --- a/deploy.sh +++ b/deploy.sh @@ -10,6 +10,9 @@ # docker buildx use tubearchivist # docker buildx inspect --bootstrap +# more details: +# https://github.com/bbilly1/tubearchivist/issues/6 + set -e function sync_blackhole { @@ -119,20 +122,14 @@ function sync_docker { printf "\ncreate new version:\n" read -r VERSION - # start build - 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?" + echo "build and push $VERSION?" read -rn 1 - # push to docker - echo "pushing multiarch latest and $VERSION:" - sudo docker buildx build --platform linux/amd64,linux/arm64 -t bbilly1/tubearchivist:latest -t bbilly1/tubearchivist:"$VERSION" --push . - #sudo docker push bbilly1/tubearchivist:latest - #sudo docker push bbilly1/tubearchivist:"$VERSION" + # start build + sudo docker buildx build \ + --platform linux/amd64,linux/arm64 \ + -t bbilly1/tubearchivist:latest \ + -t bbilly1/tubearchivist:"$VERSION" --push . # create release tag echo "commits since last version:"