Skip to content

Commit 065b969

Browse files
author
akobor
committed
Build docker images with latest tag as well
1 parent 7d03b08 commit 065b969

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

build.gradle

+9-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,15 @@ tasks.withType(JavaExec) {
160160
}
161161
}
162162

163-
jib.to.image = "kuvaszmonitoring/kuvasz:${version}"
164-
jib.container.environment = ["JAVA_TOOL_OPTIONS": "-Xms64M -Xmx128M"]
163+
jib {
164+
to {
165+
image = "kuvaszmonitoring/kuvasz:${version}"
166+
tags = ["latest"]
167+
}
168+
container {
169+
environment = ["JAVA_TOOL_OPTIONS": "-Xms64M -Xmx128M"]
170+
}
171+
}
165172

166173
task buildNativeImage(type: Exec) {
167174
dependsOn("shadowJar")

docker-build-native.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ done
1313
TAG="${VERSION}-native"
1414

1515
echo "Building docker image with tag: ${TAG}..."
16-
docker build . -t kuvaszmonitoring/kuvasz:${TAG} --build-arg VERSION=${VERSION}
16+
docker build . -t kuvaszmonitoring/kuvasz:${TAG} -t kuvaszmonitoring/kuvasz:latest-native --build-arg VERSION=${VERSION}
1717
echo "Building docker image with tag: ${TAG}...OK"

0 commit comments

Comments
 (0)