Update Jenkinsfile

This commit is contained in:
lwj9812 2024-03-22 11:12:44 +09:00 committed by GitHub
parent c93ec600b5
commit b1ca36c379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
Jenkinsfile vendored
View file

@ -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()