fix: invalid namespace name

This commit is contained in:
ange 2024-11-29 04:46:13 +00:00
parent 84ec9cf196
commit 860ab947e4
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 2 additions and 2 deletions

View File

@ -12,4 +12,4 @@ runs:
using: composite
steps:
- name: k8sdeploy
run: ${{ gitea.action_path }}/k8sdeploy.sh
run: ${{ gitea.action_path }}/entrypoint.sh

View File

@ -6,7 +6,7 @@ set -a
set +a
REGISTRY="${IMAGEAPP%%/*}"
export K8S_NS="${GITHUB_REPOSITORY#*/}-${GITHUB_REF_NAME}"
export K8S_NS; K8S_NS="$(tr '[:upper:]' '[:lower:]' <<< "${GITHUB_REPOSITORY#*/}-$GITHUB_REF_NAME" | tr -c '[:lower:]-' -)"
mkdir -p "$HOME/.kube/"
echo "$INPUT_KUBECONFIG" > "$HOME/.kube/config"