Skip to content

Commit 7963be9

Browse files
committed
install helmfile
1 parent fdfdd1e commit 7963be9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/wg-easy-pr-validation.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)