-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
executable file
·16 lines (13 loc) · 1.03 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e
echo "${KUBECONFIG_FILE}" > /root/kubeconfig.yaml
export KUBECONFIG=/root/kubeconfig.yaml
# helm repo add stable https://kubernetes-charts.storage.googleapis.com/
VALUES_TEMPLATE="${INPUT_CHART}/values.yaml"
if [ "${INPUT_VALUES_FILES}" != "" ]; then
VALUES_TEMPLATE="${VALUES_TEMPLATE} ${INPUT_VALUES_FILES}"
fi
echo ${VALUES_TEMPLATE} | xargs printf -- "-f ${GITHUB_WORKSPACE}/%s\n" | xargs echo helm template ${INPUT_RELEASE} ${GITHUB_WORKSPACE}/${INPUT_CHART} --namespace ${INPUT_NAMESPACE}
echo ${VALUES_TEMPLATE} | xargs printf -- "-f ${GITHUB_WORKSPACE}/%s\n" | xargs helm template ${INPUT_RELEASE} ${GITHUB_WORKSPACE}/${INPUT_CHART} --namespace ${INPUT_NAMESPACE}
echo ${VALUES_TEMPLATE} | xargs printf -- "-f ${GITHUB_WORKSPACE}/%s\n" | xargs echo helm upgrade ${INPUT_RELEASE} ${GITHUB_WORKSPACE}/${INPUT_CHART} -i --namespace ${INPUT_NAMESPACE}
echo ${VALUES_TEMPLATE} | xargs printf -- "-f ${GITHUB_WORKSPACE}/%s\n" | xargs helm upgrade ${INPUT_RELEASE} ${GITHUB_WORKSPACE}/${INPUT_CHART} -i --namespace ${INPUT_NAMESPACE}