Skip to content

Commit

Permalink
ci: build standalone with tag (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
s12f authored Nov 24, 2023
1 parent c269610 commit b98bcd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sink-elasticsearch/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ task buildImages(type: Exec) {
application {
// Define the main class for the application.
var imageVersion = System.getenv("CONNECTOR_IMAGE_VERSION")
if ("standalone" == imageVersion) {
if (imageVersion != null && imageVersion.startsWith("standalone")) {
System.out.println("Build standalone version:" + imageVersion)
mainClass = 'sink.elasticsearch.StandaloneElasticsearchSinkTask'
} else {
System.out.println("Build normal version:" + imageVersion)
mainClass = 'sink.elasticsearch.ElasticsearchSinkTask'
}
}
Expand Down

0 comments on commit b98bcd0

Please sign in to comment.