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
47a7d603f8
commit
69f70c0388
1 changed files with 8 additions and 1 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -37,7 +37,14 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Push Docker Image') {
|
stage('Push Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
echo "Push Docker Image to ECR"
|
echo "Push Docker Image to ECR"
|
||||||
|
script {
|
||||||
|
// cleanup current user docker credentials
|
||||||
|
sh 'rm -f ~/.dockercfg ~/.docker/config.json || true'
|
||||||
|
docker.withRegistry("https://257307634175.dkr.ecr.ap-northeast-2.amazonaws.com", "ecr:ap-northeast-2:AWSCredentials") {
|
||||||
|
docker.image("aws00-spring-petclonic:latest").push()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Upload to S3') {
|
stage('Upload to S3') {
|
||||||
|
|
Loading…
Reference in a new issue