Skip to content

Commit 732a37e

Browse files
committed
add helmfile binary installation to setup-tools action
- Add helmfile v0.170.0 installation to composite action - Include helmfile in tool caching for performance - Enable helmfile installation in helm-install-test job - Ensures helm-install task can execute helmfile sync commands - Pinned version for reproducible builds
1 parent 9e50265 commit 732a37e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/actions/setup-tools/action.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Setup Common Tools'
2-
description: 'Setup Helm, Task, yq, kubectl, preflight, and Replicated CLI'
2+
description: 'Setup Helm, Task, yq, kubectl, preflight, helmfile, and Replicated CLI'
33
inputs:
44
helm-version:
55
description: 'Helm version'
@@ -16,6 +16,9 @@ inputs:
1616
install-preflight:
1717
description: 'Whether to install preflight'
1818
default: 'false'
19+
install-helmfile:
20+
description: 'Whether to install helmfile'
21+
default: 'false'
1922

2023
runs:
2124
using: 'composite'
@@ -43,7 +46,8 @@ runs:
4346
path: |
4447
/usr/local/bin/yq
4548
/usr/local/bin/preflight
46-
key: tools-${{ runner.os }}-yq-v4.44.3-preflight-v0.95.0
49+
/usr/local/bin/helmfile
50+
key: tools-${{ runner.os }}-yq-v4.44.3-preflight-v0.95.0-helmfile-v0.170.0
4751

4852
- name: Install yq
4953
shell: bash
@@ -68,6 +72,19 @@ runs:
6872
echo "preflight already installed (cached)"
6973
fi
7074
75+
- name: Install helmfile
76+
if: inputs.install-helmfile == 'true'
77+
shell: bash
78+
run: |
79+
if [ ! -f /usr/local/bin/helmfile ]; then
80+
echo "Installing helmfile v0.170.0..."
81+
curl -L https://github.com/helmfile/helmfile/releases/download/v0.170.0/helmfile_0.170.0_linux_amd64.tar.gz | tar xz
82+
sudo mv helmfile /usr/local/bin/
83+
sudo chmod +x /usr/local/bin/helmfile
84+
else
85+
echo "helmfile already installed (cached)"
86+
fi
87+
7188
- name: Install Replicated CLI
7289
shell: bash
7390
working-directory: ${{ inputs.app-dir }}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ jobs:
246246
uses: ./.github/actions/setup-tools
247247
with:
248248
helm-version: ${{ env.HELM_VERSION }}
249+
install-helmfile: 'true'
249250

250251
- name: Helm registry login
251252
if: needs.create-customer-and-cluster.outputs.skip-customer-registry == 'false'

0 commit comments

Comments
 (0)