Skip to content

Commit

Permalink
build: add Gradle task for building Docker image
Browse files Browse the repository at this point in the history
SVC-1398
  • Loading branch information
florianesser committed Feb 28, 2024
1 parent 1fdfa43 commit dd38771
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import com.bmuschko.gradle.docker.tasks.image.*
import com.bmuschko.gradle.docker.tasks.container.*

plugins {
id 'java'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
id 'com.diffplug.spotless' version '6.23.0'
id 'com.bmuschko.docker-spring-boot-application' version '9.3.6'
}

group = 'to.wetransform.hale'
Expand Down Expand Up @@ -91,6 +95,10 @@ spotless {
}
}

task buildImage(type: DockerBuildImage) {
inputDir = project.projectDir
images = ["harbor.develop.diplanung.de/diplan-develop/diplan-hale-transformer:latest"]
}
/*
* Gradle wrapper
*/
Expand Down

0 comments on commit dd38771

Please sign in to comment.