update deploy script

This commit is contained in:
InsanusMokrassar 2021-02-02 19:39:20 +06:00
parent 290e77cc4c
commit 3f6dee57fb

7
deploy
View File

@ -13,6 +13,7 @@ function assert_success() {
fi
}
user=insanusmokrassar
app=configurable_inline_telegram_bot
version=0.1
@ -20,5 +21,7 @@ export DOCKER_BUILD=true
assert_success ./gradlew build
assert_success docker build -t $app:"$version" .
assert_success docker tag $app:"$version" $app
assert_success docker push $app
assert_success docker tag $app:"$version" $user/$app:$version
assert_success docker tag $app:"$version" $user/$app:latest
assert_success docker push $user/$app:$version
assert_success docker push $user/$app:latest