File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ jobs:
115115 -O /usr/local/bin/yq
116116 sudo chmod +x /usr/local/bin/yq
117117
118+ - name : Install helmfile
119+ run : |
120+ sudo wget https://github.com/helmfile/helmfile/releases/latest/download/helmfile_linux_amd64 \
121+ -O /usr/local/bin/helmfile
122+ sudo chmod +x /usr/local/bin/helmfile
123+
118124 - name : Update dependencies
119125 run : task dependencies-update
120126
@@ -141,5 +147,13 @@ jobs:
141147 run : |
142148 if [ -f helmfile.yaml.gotmpl ]; then
143149 echo "Validating helmfile template syntax"
144- cat helmfile.yaml.gotmpl | envsubst | yq eval . > /dev/null
150+ # Set required environment variables for helmfile template
151+ export REPLICATED_APP="test-app"
152+ export CHANNEL="unstable"
153+ export REPLICATED_LICENSE_ID="test-license"
154+ export TF_EXPOSED_URL="test.example.com"
155+
156+ # Use helmfile to validate template syntax only
157+ helmfile -f helmfile.yaml.gotmpl -e default build > /dev/null
158+ echo "Helmfile template syntax is valid"
145159 fi
You can’t perform that action at this time.
0 commit comments