Update Jenkinsfile

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

2
Jenkinsfile vendored
View file

@ -60,6 +60,7 @@ pipeline {
script {
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()
}
}
@ -72,7 +73,6 @@ pipeline {
sh "docker image prune -f --all --filter \"until=1h\""
}
}
}
}