#!/bin/sh readarray -d / -t registry <<< $1 oci --profile DEFAULT raw-request --http-method GET --target-uri https://$registry/20180419/docker/token \ | jq -r '.data.token' \ | docker login -u BEARER_TOKEN --password-stdin iad.ocir.io