Fairly new to GitLab-CI, I'm trying to deploy via Helm on a Kubernetes cluster. I have this:
image: docker:stable
deploy:
stage: deploy
image:
name: alpine/helm:3.4.1
script:
- echo "Deploying to production"
- helm list --all-namespaces
And it fails with:
Error: unknown command "sh" for "helm"
And the echo
is not echoed, however, If I were to remove the echo
line, the helm
cmd would execute successfully.
I guess I'm asking how to make multiline scripts run? How do the gitlab-runner executes the series of commands provided in the script:
array?