auto-detect cluster registry host
Some checks failed
CI / Rustfmt (push) Successful in 53s
CI / Cargo Audit & Deny (push) Successful in 2m4s
CI / Web Blocking Checks (push) Successful in 4m47s
CI / Security Blocking Checks (push) Successful in 55s
CI / Tests (push) Successful in 8m51s
CI / Security Advisory Checks (push) Successful in 39s
Publish Images And Chart / Resolve Publish Metadata (push) Successful in 2s
Publish Images And Chart / Publish init-packs (push) Failing after 15s
Publish Images And Chart / Publish init-user (push) Failing after 13s
CI / Web Advisory Checks (push) Successful in 1m31s
Publish Images And Chart / Publish migrations (push) Failing after 12s
Publish Images And Chart / Publish web (push) Failing after 13s
Publish Images And Chart / Publish worker (push) Failing after 12s
Publish Images And Chart / Publish sensor (push) Failing after 38s
Publish Images And Chart / Publish api (push) Failing after 13s
Publish Images And Chart / Publish notifier (push) Failing after 8s
Publish Images And Chart / Publish executor (push) Failing after 33s
Publish Images And Chart / Publish Helm Chart (push) Has been skipped
CI / Clippy (push) Successful in 19m26s
Some checks failed
CI / Rustfmt (push) Successful in 53s
CI / Cargo Audit & Deny (push) Successful in 2m4s
CI / Web Blocking Checks (push) Successful in 4m47s
CI / Security Blocking Checks (push) Successful in 55s
CI / Tests (push) Successful in 8m51s
CI / Security Advisory Checks (push) Successful in 39s
Publish Images And Chart / Resolve Publish Metadata (push) Successful in 2s
Publish Images And Chart / Publish init-packs (push) Failing after 15s
Publish Images And Chart / Publish init-user (push) Failing after 13s
CI / Web Advisory Checks (push) Successful in 1m31s
Publish Images And Chart / Publish migrations (push) Failing after 12s
Publish Images And Chart / Publish web (push) Failing after 13s
Publish Images And Chart / Publish worker (push) Failing after 12s
Publish Images And Chart / Publish sensor (push) Failing after 38s
Publish Images And Chart / Publish api (push) Failing after 13s
Publish Images And Chart / Publish notifier (push) Failing after 8s
Publish Images And Chart / Publish executor (push) Failing after 33s
Publish Images And Chart / Publish Helm Chart (push) Has been skipped
CI / Clippy (push) Successful in 19m26s
This commit is contained in:
@@ -38,6 +38,8 @@ jobs:
|
||||
registry="${REGISTRY_HOST}"
|
||||
namespace="${REGISTRY_NAMESPACE}"
|
||||
registry_plain_http_raw="${REGISTRY_PLAIN_HTTP:-}"
|
||||
registry_host_only="${registry%%:*}"
|
||||
registry_plain_http_default="false"
|
||||
|
||||
if [ -z "$registry" ]; then
|
||||
echo "CLUSTER_GITEA_HOST app variable is required"
|
||||
@@ -48,14 +50,26 @@ jobs:
|
||||
namespace="${{ github.repository_owner }}"
|
||||
fi
|
||||
|
||||
case "$(printf '%s' "$registry_plain_http_raw" | tr '[:upper:]' '[:lower:]')" in
|
||||
1|true|yes|on)
|
||||
registry_plain_http="true"
|
||||
;;
|
||||
*)
|
||||
registry_plain_http="false"
|
||||
;;
|
||||
esac
|
||||
if printf '%s' "$registry_host_only" | grep -Eq '(^|[.])svc[.]cluster[.]local$'; then
|
||||
registry_plain_http_default="true"
|
||||
fi
|
||||
|
||||
if [ -n "$registry_plain_http_raw" ]; then
|
||||
case "$(printf '%s' "$registry_plain_http_raw" | tr '[:upper:]' '[:lower:]')" in
|
||||
1|true|yes|on)
|
||||
registry_plain_http="true"
|
||||
;;
|
||||
0|false|no|off)
|
||||
registry_plain_http="false"
|
||||
;;
|
||||
*)
|
||||
echo "CONTAINER_REGISTRY_INSECURE must be a boolean when set"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
else
|
||||
registry_plain_http="$registry_plain_http_default"
|
||||
fi
|
||||
|
||||
short_sha="$(printf '%s' "${{ github.sha }}" | cut -c1-12)"
|
||||
ref_type="${{ github.ref_type }}"
|
||||
|
||||
Reference in New Issue
Block a user