Skip to content

Commit

Permalink
Deployed latest Docker image tag on release (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc GREFFIER authored Mar 7, 2023
1 parent 06e7da3 commit a583a64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on_push_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a583a64

Please sign in to comment.