Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 16s
All checks were successful
Build docker container / Build image (push) Successful in 16s
This commit is contained in:
parent
d5e1c04b2d
commit
f2d2470212
@ -52,17 +52,13 @@ echo "# action: $action"
|
|||||||
|
|
||||||
# if KUBECONFIG_DATA is set
|
# if KUBECONFIG_DATA is set
|
||||||
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||||
mkdir -p /home/notroot/.kube
|
mkdir -p ~/.kube
|
||||||
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
echo "$KUBECONFIG_DATA" > ~/.kube/config
|
||||||
echo "# .kube/config is set"
|
echo "# .kube/config is set"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the action environment variable is set to 'print'
|
# Check if the action environment variable is set to 'print'
|
||||||
if [[ "$action" == "print" ]]; then
|
if [[ "$action" == "print" ]]; then
|
||||||
pwd
|
|
||||||
echo "----"
|
|
||||||
ls -1
|
|
||||||
echo "----"
|
|
||||||
createHelmYaml
|
createHelmYaml
|
||||||
elif [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then
|
elif [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||||
kubectl version --kubeconfig=/home/notroot/.kube/config
|
kubectl version --kubeconfig=/home/notroot/.kube/config
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user