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
Some checks failed
Test build-and-push (self-test) / Build tiny multi-arch image (push) Failing after 2s
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user