Skip to content

Commit

Permalink
Docker run image shortened
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed Jan 20, 2022
1 parent a7bd824 commit 067a053
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ open class DockerRunSpec(docker: Docker) : DockerInvokeSpec(docker) {
}
})
operation.set(environment.obj.provider {
val imageShort = imageOrFail.substringAfterLast("/")
when {
command.orNull.isNullOrBlank() -> "Running image '$imageOrFail'"
else -> "Running image '$imageOrFail' with command '${command.get()}'"
command.orNull.isNullOrBlank() -> "Running image '$imageShort'"
else -> "Running image '$imageShort' with command '${command.get()}'"
}
})
}
Expand Down

0 comments on commit 067a053

Please sign in to comment.