diff options
Diffstat (limited to 'roles/jenkins-slave-deps/templates/update_ecr_images.sh')
-rwxr-xr-x | roles/jenkins-slave-deps/templates/update_ecr_images.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/jenkins-slave-deps/templates/update_ecr_images.sh b/roles/jenkins-slave-deps/templates/update_ecr_images.sh new file mode 100755 index 00000000..4ce15f0e --- /dev/null +++ b/roles/jenkins-slave-deps/templates/update_ecr_images.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +. /root/aws/credentials.sh + +ECR=987685672616.dkr.ecr.us-east-1.amazonaws.com +REPO=${1:-fvp} + +aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $ECR + + +for i in $(aws ecr list-images --repository-name $REPO --filter tagStatus=TAGGED --query 'imageIds[*].imageTag' --output text);do docker pull $ECR/$REPO:$i; done |