Test before push.
This commit is contained in:
parent
b919eb17ac
commit
79da75e806
1 changed files with 7 additions and 2 deletions
|
|
@ -72,16 +72,21 @@ task pushLatestImage(type: Exec) {
|
|||
+ "/${project.name}:latest"
|
||||
}
|
||||
|
||||
task pushImages {
|
||||
task pushForTest {
|
||||
dependsOn pushImage
|
||||
dependsOn pushLatestImage
|
||||
}
|
||||
|
||||
task pushImages {
|
||||
dependsOn test
|
||||
dependsOn pushForTest
|
||||
}
|
||||
|
||||
test {
|
||||
enabled = project.hasProperty("k8s.testCluster")
|
||||
|
||||
if (enabled) {
|
||||
dependsOn project.tasks["pushImages"]
|
||||
dependsOn project.tasks["pushForTest"]
|
||||
}
|
||||
|
||||
useJUnitPlatform()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue