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
e66af3cd0e
commit
a8aac40ee2
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -31,7 +31,7 @@ pipeline {
|
||||||
stage ('Docker Build') {
|
stage ('Docker Build') {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.WORKSPACE}") {
|
dir("${env.WORKSPACE}") {
|
||||||
sh 'docker build -t spring-petclinic:1.0 .'
|
sh 'docker build -t aws00-spring-petclinic:1.0 .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ pipeline {
|
||||||
sh 'rm -f ~/.dockercfg || true'
|
sh 'rm -f ~/.dockercfg || true'
|
||||||
sh 'rm -f ~/.docker/config.json || true'
|
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.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("aws00-spring-petclinic:1.0").push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue