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 [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||
mkdir -p /home/notroot/.kube
|
||||
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
||||
mkdir -p ~/.kube
|
||||
echo "$KUBECONFIG_DATA" > ~/.kube/config
|
||||
echo "# .kube/config is set"
|
||||
fi
|
||||
|
||||
# Check if the action environment variable is set to 'print'
|
||||
if [[ "$action" == "print" ]]; then
|
||||
pwd
|
||||
echo "----"
|
||||
ls -1
|
||||
echo "----"
|
||||
createHelmYaml
|
||||
elif [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||
kubectl version --kubeconfig=/home/notroot/.kube/config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user