mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 17:15:48 +00:00
Update Jenkinsfile
This commit is contained in:
parent
c640e539fe
commit
e66af3cd0e
1 changed files with 3 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -40,8 +40,9 @@ pipeline {
|
||||||
echo "Push Docker Image to ECR"
|
echo "Push Docker Image to ECR"
|
||||||
script {
|
script {
|
||||||
// cleanup current user docker credentials
|
// cleanup current user docker credentials
|
||||||
sh 'rm -f ~/.dockercfg ~/.docker/config.json || true'
|
sh 'rm -f ~/.dockercfg || true'
|
||||||
docker.withRegistry("https://257307634175.dkr.ecr.ap-northeast-2.amazonaws.com", "ecr:ap-northeast-2:AWSCredentials") {
|
sh 'rm -f ~/.docker/config.json || true'
|
||||||
|
docker.withRegistry("https://257307634175.dkr.ecr.ap-northeast-2.amazonaws.com/aws00-spring-petclinic", "ecr:ap-northeast-2:AWSCredentials") {
|
||||||
docker.image("spring-petclinic:1.0").push()
|
docker.image("spring-petclinic:1.0").push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue