mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
408241c97d
commit
c93ec600b5
1 changed files with 2 additions and 2 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -60,6 +60,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
sh 'rm -f ~/.dockercfg~/.docker/config.json || true'
|
sh 'rm -f ~/.dockercfg~/.docker/config.json || true'
|
||||||
docker.withRegistry("http://${ECR_REPOSITORY}", "ecr:${REGION}:${AWS_CREDENTIAL_NAME}") {
|
docker.withRegistry("http://${ECR_REPOSITORY}", "ecr:${REGION}:${AWS_CREDENTIAL_NAME}") {
|
||||||
|
docker.image("{ECR_DOCKER_IMAGE}:${BUILD_NUMBER}").push()
|
||||||
docker.image("${ECR_DOCKER_IMAGE}:latest").push()
|
docker.image("${ECR_DOCKER_IMAGE}:latest").push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +73,6 @@ pipeline {
|
||||||
sh "docker image prune -f --all --filter \"until=1h\""
|
sh "docker image prune -f --all --filter \"until=1h\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue