diff --git a/.github/workflows/on_push_tag.yml b/.github/workflows/on_push_tag.yml index f4012b9..a8fd63d 100644 --- a/.github/workflows/on_push_tag.yml +++ b/.github/workflows/on_push_tag.yml @@ -45,7 +45,7 @@ jobs: report_paths: '**/build/test-results/test/TEST-*.xml' - name: Docker - run: ./gradlew dockerBuild dockerPush + run: ./gradlew dockerBuild dockerPush -Prelease - name: Generate release changelog uses: mikepenz/release-changelog-builder-action@v3.7.0 diff --git a/build.gradle b/build.gradle index 1c34a41..b397f4e 100644 --- a/build.gradle +++ b/build.gradle @@ -80,8 +80,14 @@ dockerfile { baseImage = "eclipse-temurin:11-jre-alpine" } -dockerBuild { - images = ["michelin/kafkactl:" + version] +if (project.hasProperty("release")) { + dockerBuild { + images = ["michelin/kafkactl:" + version, "michelin/kafkactl:latest"] + } +} else { + dockerBuild { + images = ["michelin/kafkactl:" + version] + } } sonarqube {