Skip to content

Commit 90ddbac

Browse files
committed
use helmfile/helmfile-action
1 parent 7963be9 commit 90ddbac

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

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

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ 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-
124118
- name: Update dependencies
125119
run: task dependencies-update
126120

@@ -144,16 +138,13 @@ jobs:
144138
run: task --list-all
145139

146140
- name: Validate helmfile template
147-
run: |
148-
if [ -f helmfile.yaml.gotmpl ]; then
149-
echo "Validating helmfile template syntax"
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"
159-
fi
141+
uses: helmfile/[email protected]
142+
if: hashFiles('helmfile.yaml.gotmpl') != ''
143+
with:
144+
helmfile-args: build
145+
helmfile-workdirectory: ${{ env.APP_DIR }}
146+
env:
147+
REPLICATED_APP: "test-app"
148+
CHANNEL: "unstable"
149+
REPLICATED_LICENSE_ID: "test-license"
150+
TF_EXPOSED_URL: "test.example.com"

0 commit comments

Comments
 (0)