mirror of
https://github.com/InsanusMokrassar/ConfigurableInlineTelegramBot.git
synced 2024-11-22 08:13:51 +00:00
updates for docker publication
This commit is contained in:
parent
3f4dacc129
commit
290e77cc4c
@ -2,8 +2,8 @@ FROM java:8
|
|||||||
|
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|
||||||
ADD ./build/distributions/configurable_inline_telegram_bot.tar /
|
|
||||||
|
|
||||||
VOLUME /config.json
|
VOLUME /config.json
|
||||||
|
|
||||||
ENTRYPOINT ["/configurable_inline_telegram_bot/bin/configurable_inline_telegram_bot", "/config.json"]
|
ENTRYPOINT ["/configurable_inline_telegram_bot/bin/configurable_inline_telegram_bot", "/config.json"]
|
||||||
|
|
||||||
|
ADD ./build/distributions/configurable_inline_telegram_bot.tar /
|
||||||
|
@ -21,7 +21,9 @@ mainClassName="dev.inmo.configurable_inline_telegram_bot.StartBotKt"
|
|||||||
|
|
||||||
apply from: "publish.gradle"
|
apply from: "publish.gradle"
|
||||||
|
|
||||||
project.version = "$library_version"
|
if (System.getenv("DOCKER_BUILD") != "true") {
|
||||||
|
project.version = "$library_version"
|
||||||
|
}
|
||||||
project.group = "$library_group"
|
project.group = "$library_group"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
4
deploy
4
deploy
@ -13,9 +13,11 @@ function assert_success() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
app=planner-text-help
|
app=configurable_inline_telegram_bot
|
||||||
version=0.1
|
version=0.1
|
||||||
|
|
||||||
|
export DOCKER_BUILD=true
|
||||||
|
|
||||||
assert_success ./gradlew build
|
assert_success ./gradlew build
|
||||||
assert_success docker build -t $app:"$version" .
|
assert_success docker build -t $app:"$version" .
|
||||||
assert_success docker tag $app:"$version" $app
|
assert_success docker tag $app:"$version" $app
|
||||||
|
Loading…
Reference in New Issue
Block a user