57
57
description : Command run by helmfile
58
58
required : false
59
59
type : string
60
- default : apply --suppress-secrets
60
+ default : apply --suppress-secrets --suppress-diff
61
61
enableVpn :
62
62
description : Enable VPN connection
63
63
required : false
@@ -137,7 +137,6 @@ jobs:
137
137
# There is no public action that would give us the abilities we need. Meaning:
138
138
# - helmfile
139
139
# - eksctl
140
- # - sops
141
140
# - helm secret plugin
142
141
# NOTE: This will go away with terraform
143
142
- name : setup dependencies
@@ -146,26 +145,19 @@ jobs:
146
145
EKSCTL_VERSION : v0.98.0
147
146
# renovate: datasource=github-releases depName=helmfile/helmfile
148
147
HELMFILE_VERSION : ' v0.155.1'
149
- # TODO: remove sops as it is not used anymore
150
- SOPS_VERSION : v3.7.2
151
- # TODO: remove secrets plugin as it is not used anymore
152
- HELM_SECRETS_PLUGIN_VERSION : v3.8.3
153
148
# renovate: datasource=github-releases depName=databus23/helm-diff
154
149
HELM_DIFF_PLUGIN_VERSION : v3.9.6
155
150
run : |
156
151
HELMFILE_VERSION_WITHOUT_PREFIX=${HELMFILE_VERSION:1}
157
152
curl -fsSL -o eksctl.tar.gz https://github.com/weaveworks/eksctl/releases/download/${{ env.EKSCTL_VERSION }}/eksctl_Linux_amd64.tar.gz
158
153
curl -fsSL -o helmfile.tar.gz https://github.com/helmfile/helmfile/releases/download/${{ env.HELMFILE_VERSION }}/helmfile_${HELMFILE_VERSION_WITHOUT_PREFIX}_linux_amd64.tar.gz
159
- curl -fsSL -o sops https://github.com/mozilla/sops/releases/download/${{ env.SOPS_VERSION }}/sops-${{ env.SOPS_VERSION }}.linux
160
154
161
- helm plugin install https://github.com/jkroepke/helm-secrets --version ${{ env.HELM_SECRETS_PLUGIN_VERSION }}
162
155
helm plugin install https://github.com/databus23/helm-diff --version ${{ env.HELM_DIFF_PLUGIN_VERSION }}
163
156
164
157
mkdir -p $HOME/.local/bin
165
158
166
159
tar -C $HOME/.local/bin/ -xf ./eksctl.tar.gz
167
160
tar -C $HOME/.local/bin/ -xf ./helmfile.tar.gz
168
- mv sops $HOME/.local/bin/
169
161
170
162
chmod +x $HOME/.local/bin/*
171
163
echo "$HOME/.local/bin" >> $GITHUB_PATH
@@ -209,6 +201,14 @@ jobs:
209
201
echo "Waiting for Tailscale to be ready..."
210
202
done
211
203
204
+ - name : helmfile diff
205
+ if : inputs.helmfileCommand != 'destroy'
206
+ run : |
207
+ export $(echo ${{ inputs.envVariables }})
208
+ HELMFILE_PARAMS="-f ${{ inputs.helmfilePath }}"
209
+ [ ! -z ${{ inputs.helmfileEnvironment }} ] && HELMFILE_PARAMS+=" -e ${{ inputs.helmfileEnvironment }}"
210
+ helmfile diff --output dyff $HELMFILE_PARAMS
211
+
212
212
- name : helmfile ${{ inputs.helmfileCommand }}
213
213
run : |
214
214
export $(echo ${{ inputs.envVariables }})
0 commit comments