Commit feea739f authored by Gerry Gunzenhauser's avatar Gerry Gunzenhauser

fix templating engine

parent e08053d2
Pipeline #2234 passed with stage
in 14 seconds
......@@ -40,8 +40,9 @@ metadata:
name: $KUBE_NAMESPACE
EOF
if [ -e "${DEPLOYMENT_YML_FILE:-deployment.yml}" ]; then
eval "kubectl apply -n $KUBE_NAMESPACE -f - <<EOF\n$(cat ${DEPLOYMENT_YML_FILE:-deployment.yml})\nEOF"
export DEPLOYMENT_YML_FILE="${DEPLOYMENT_YML_FILE:-deployment.yml}"
if [ -e "${DEPLOYMENT_YML_FILE}" ]; then
source <(echo 'kubectl apply -n $KUBE_NAMESPACE -f - <<EOFOFDEPLOYMENTYML'; cat "${DEPLOYMENT_YML_FILE}"; echo EOFOFDEPLOYMENTYML)
else
cat <<EOF | kubectl apply -n $KUBE_NAMESPACE -f -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment