fix: strip CRLF from inputs + add .gitattributes (eol=lf) -- fixes ssh username 'invalid characters'
Some checks failed
Test build-and-push (self-test) / Build tiny multi-arch image (push) Failing after 2s

This commit is contained in:
2026-07-13 19:39:29 -03:00
parent f55d654e72
commit fc7ed6bd15
5 changed files with 34 additions and 3 deletions

View File

@@ -63,7 +63,8 @@ runs:
env:
KUBE_CONFIG: ${{ inputs.kube_config }}
run: |
echo "${KUBE_CONFIG}" > kubeconfig.yaml
# strip stray CR (CRLF checkout via core.autocrlf)
printf '%s' "${KUBE_CONFIG}" | tr -d '\r' > kubeconfig.yaml
kubectl --kubeconfig=kubeconfig.yaml cluster-info
- name: Apply manifests
@@ -73,6 +74,11 @@ runs:
MANIFESTS: ${{ inputs.manifests }}
NAMESPACE: ${{ inputs.namespace }}
run: |
# strip stray CR (CRLF checkout via core.autocrlf)
NAMESPACE=$(printf '%s' "${NAMESPACE}" | tr -d '\r')
MANIFEST=$(printf '%s' "${MANIFEST}" | tr -d '\r')
MANIFESTS=$(printf '%s' "${MANIFESTS}" | tr -d '\r')
NS_FLAG=""
if [ -n "${NAMESPACE}" ] && [ "${NAMESPACE// }" != "" ]; then
NS_FLAG="-n ${NAMESPACE}"