Skip to content

Commit 311e569

Browse files
updated github action and version
1 parent 1f86e47 commit 311e569

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ jobs:
2121
with:
2222
username: ${{ secrets.DOCKERHUB_USERNAME }}
2323
password: ${{ secrets.DOCKER_PASSWORD }}
24+
-
25+
name: Set variables
26+
run: |
27+
VER=$( grep -E '^version' build.gradle.kts | cut -d '"' -f 2 )
28+
echo "VERSION=$VER" >> $GITHUB_ENV
2429
-
2530
name: Build and push
2631
id: docker_build
2732
uses: docker/build-push-action@v2
2833
with:
2934
push: true
30-
tags: livingwithhippos/unchainedbotkotlin:latest
35+
tags: |
36+
livingwithhippos/unchainedbotkotlin:latest
37+
livingwithhippos/unchainedbotkotlin:${{ env.VERSION }}
3138
build-args: |
3239
arg1=value1
3340
arg2=value2

app/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "com.github.livingwithhippos"
9-
version = "0.1"
9+
version = "0.2"
1010

1111
repositories {
1212
mavenCentral()
@@ -36,8 +36,6 @@ dependencies {
3636

3737
// Koin for Kotlin
3838
implementation ("io.insert-koin:koin-core:$koinVersion")
39-
// Koin extended & experimental features
40-
// implementation ("org.koin:koin-core-ext:$koinVersion")
4139

4240
// telegram bot
4341
implementation ("io.github.kotlin-telegram-bot.kotlin-telegram-bot:telegram:$telegramVersion")

0 commit comments

Comments
 (0)