Update Jenkinsfile

This commit is contained in:
s4616 2023-07-10 19:07:19 +09:00 committed by GitHub
parent 47a7d603f8
commit 69f70c0388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
Jenkinsfile vendored
View file

@ -37,7 +37,14 @@ pipeline {
}
stage('Push Docker Image') {
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') {