fix: namespace name validation
This commit is contained in:
parent
860ab947e4
commit
c92462e209
@ -6,7 +6,7 @@ set -a
|
||||
set +a
|
||||
|
||||
REGISTRY="${IMAGEAPP%%/*}"
|
||||
export K8S_NS; K8S_NS="$(tr '[:upper:]' '[:lower:]' <<< "${GITHUB_REPOSITORY#*/}-$GITHUB_REF_NAME" | tr -c '[:lower:]-' -)"
|
||||
export K8S_NS; K8S_NS="$(printf '%s' "${GITHUB_REPOSITORY#*/}-$GITHUB_REF_NAME" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-' - | sed 's/-\+/-/g; s/^-\+//; s/-$//')"
|
||||
|
||||
mkdir -p "$HOME/.kube/"
|
||||
echo "$INPUT_KUBECONFIG" > "$HOME/.kube/config"
|
||||
|
Loading…
Reference in New Issue
Block a user