updates for docker publication

This commit is contained in:
InsanusMokrassar 2021-02-02 19:34:24 +06:00
parent 3f4dacc129
commit 290e77cc4c
3 changed files with 8 additions and 4 deletions

View File

@ -2,8 +2,8 @@ FROM java:8
USER 1000
ADD ./build/distributions/configurable_inline_telegram_bot.tar /
VOLUME /config.json
ENTRYPOINT ["/configurable_inline_telegram_bot/bin/configurable_inline_telegram_bot", "/config.json"]
ADD ./build/distributions/configurable_inline_telegram_bot.tar /

View File

@ -21,7 +21,9 @@ mainClassName="dev.inmo.configurable_inline_telegram_bot.StartBotKt"
apply from: "publish.gradle"
project.version = "$library_version"
if (System.getenv("DOCKER_BUILD") != "true") {
project.version = "$library_version"
}
project.group = "$library_group"
repositories {

4
deploy
View File

@ -13,9 +13,11 @@ function assert_success() {
fi
}
app=planner-text-help
app=configurable_inline_telegram_bot
version=0.1
export DOCKER_BUILD=true
assert_success ./gradlew build
assert_success docker build -t $app:"$version" .
assert_success docker tag $app:"$version" $app