Sha256: 2b15efe8538f678a7551377f5c1ddb3329cf170be466a84fdf6e3235091b4fa9

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

auth_ecr() {
  $(aws ecr get-login --region us-east-1 --no-include-email)
}

worked=1
for attempt in {1..10}; do
  [[ $worked != 0 ]] || break
  auth_ecr && worked=0 || (log "ecr auth: attempt $attempt failed, sleeping 30"; sleep 30)
done
[[ $worked != 0 ]] && fatal "failed to auth to ecr"
log "ecr auth: successfully authenticated"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dockly-4.2.0 snippets/auth_ecr.erb
dockly-4.1.0 snippets/auth_ecr.erb
dockly-4.0.0 snippets/auth_ecr.erb