Skip to content

Commit 1901e94

Browse files
committed
Fixed parsing kotlin_version in docker-image-build.sh
1 parent 39d87bb commit 1901e94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker-image-build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3-
kotlin_version=$(awk '{ if ($1=="systemProp.kotlinVersion") { print $2; } }' FS='=' ./gradle.properties)
3+
kotlinVersion=$(awk '{ if ($1 == "kotlin") { gsub(/"/, "", $2); print $2; } }' FS=' = ' ./gradle/libs.versions.toml)
44

5-
docker build . --file Dockerfile --tag my-image-name:$(date +%s) --build-arg KOTLIN_VERSION=$kotlin_version
5+
echo "Kotlin Version for the docker: $kotlinVersion"
6+
7+
docker build . --file Dockerfile --tag my-image-name:$(date +%s) --build-arg KOTLIN_VERSION=$kotlinVersion

0 commit comments

Comments
 (0)