|
@@ -25,7 +25,7 @@ fi
|
|
|
platform="$(bashbrew cat --format '{{ ociPlatform arch }}' <(echo 'Maintainers: empty hack (@example)'))"
|
|
platform="$(bashbrew cat --format '{{ ociPlatform arch }}' <(echo 'Maintainers: empty hack (@example)'))"
|
|
|
|
|
|
|
|
hubMirrors="$(docker info --format '{{ json .RegistryConfig.Mirrors }}' | jq -c '
|
|
hubMirrors="$(docker info --format '{{ json .RegistryConfig.Mirrors }}' | jq -c '
|
|
|
- [ env.DOCKERHUB_PUBLIC_PROXY // empty, .[] ]
|
|
|
|
|
|
|
+ [ env.DOCKERHUB_PUBLIC_PROXY // empty, .[]? ]
|
|
|
| map(select(startswith("https://")) | ltrimstr("https://") | rtrimstr("/") | select(contains("/") | not))
|
|
| map(select(startswith("https://")) | ltrimstr("https://") | rtrimstr("/") | select(contains("/") | not))
|
|
|
| reduce .[] as $item ( # "unique" but order-preserving (we want DOCKERHUB_PUBLIC_PROXY first followed by everything else set in the dockerd mirrors config without duplication)
|
|
| reduce .[] as $item ( # "unique" but order-preserving (we want DOCKERHUB_PUBLIC_PROXY first followed by everything else set in the dockerd mirrors config without duplication)
|
|
|
[];
|
|
[];
|