[10.07.20] Moved image build to build step rather than being in the Tag Repo step
This commit is contained in:
parent
319eb807e5
commit
d8abb86904
@ -73,10 +73,6 @@ try {
|
|||||||
env.APPLICATION_VERSION,
|
env.APPLICATION_VERSION,
|
||||||
env.APPLICATION_LABEL)
|
env.APPLICATION_LABEL)
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Tag Repository') {
|
|
||||||
|
|
||||||
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
||||||
docker.build("${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}")
|
docker.build("${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}")
|
||||||
docker.build("${env.APPLICATION_NAME}:latest")
|
docker.build("${env.APPLICATION_NAME}:latest")
|
||||||
@ -88,6 +84,10 @@ try {
|
|||||||
sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest"
|
sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Tag Repository') {
|
||||||
|
|
||||||
withCredentials(
|
withCredentials(
|
||||||
[usernamePassword(
|
[usernamePassword(
|
||||||
credentialsId: env.GITHUB_CREDENTIALS_ID,
|
credentialsId: env.GITHUB_CREDENTIALS_ID,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user