[26.06.20] Docker stuff
This commit is contained in:
parent
9dbc5fa6b5
commit
be58e4b801
@ -75,17 +75,19 @@ try {
|
||||
|
||||
stage('Tag Repository') {
|
||||
|
||||
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
||||
def image = docker.build("db-gateway:${env.APPLICATION_VERSION}")
|
||||
def latest = docker.build("db-gateway:latest")
|
||||
|
||||
sh "docker build -t db-gateway:${env.APPLICATION_VERSION}"
|
||||
sh "docker build -t db-gateway:latest"
|
||||
|
||||
sh "docker tag db-gateway:${env.APPLICATION_VERSION} ${env.DOCKER_REPOSITORY}/db-gateway:${env.APPLICATION_VERSION}"
|
||||
sh "docker tag db-gateway:latest ${env.DOCKER_REPOSITORY}/db-gateway:latest"
|
||||
sh "docker tag ${image} ${env.DOCKER_REPOSITORY}/db-gateway:${env.APPLICATION_VERSION}"
|
||||
sh "docker tag ${latest} ${env.DOCKER_REPOSITORY}/db-gateway:latest"
|
||||
|
||||
sh "docker push ${env.DOCKER_REPOSITORY}/${image}"
|
||||
sh "docker push ${env.DOCKER_REPOSITORY}/${latest}"
|
||||
}
|
||||
|
||||
// sh "docker build -t db-gateway:${env.APPLICATION_VERSION}"
|
||||
// sh "docker build -t db-gateway:latest"
|
||||
|
||||
withCredentials(
|
||||
[usernamePassword(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user