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
c93ec600b5
commit
b1ca36c379
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -58,7 +58,7 @@ pipeline {
|
|||
steps {
|
||||
echo "Push Docker Image to ECR"
|
||||
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.image("{ECR_DOCKER_IMAGE}:${BUILD_NUMBER}").push()
|
||||
docker.image("${ECR_DOCKER_IMAGE}:latest").push()
|
||||
|
|
Loading…
Reference in a new issue