5757 description : Command run by helmfile
5858 required : false
5959 type : string
60- default : apply --suppress-secrets
60+ default : apply --suppress-secrets --suppress-diff
6161 enableVpn :
6262 description : Enable VPN connection
6363 required : false
@@ -137,7 +137,6 @@ jobs:
137137 # There is no public action that would give us the abilities we need. Meaning:
138138 # - helmfile
139139 # - eksctl
140- # - sops
141140 # - helm secret plugin
142141 # NOTE: This will go away with terraform
143142 - name : setup dependencies
@@ -146,26 +145,19 @@ jobs:
146145 EKSCTL_VERSION : v0.98.0
147146 # renovate: datasource=github-releases depName=helmfile/helmfile
148147 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
153148 # renovate: datasource=github-releases depName=databus23/helm-diff
154149 HELM_DIFF_PLUGIN_VERSION : v3.9.6
155150 run : |
156151 HELMFILE_VERSION_WITHOUT_PREFIX=${HELMFILE_VERSION:1}
157152 curl -fsSL -o eksctl.tar.gz https://github.com/weaveworks/eksctl/releases/download/${{ env.EKSCTL_VERSION }}/eksctl_Linux_amd64.tar.gz
158153 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
160154
161- helm plugin install https://github.com/jkroepke/helm-secrets --version ${{ env.HELM_SECRETS_PLUGIN_VERSION }}
162155 helm plugin install https://github.com/databus23/helm-diff --version ${{ env.HELM_DIFF_PLUGIN_VERSION }}
163156
164157 mkdir -p $HOME/.local/bin
165158
166159 tar -C $HOME/.local/bin/ -xf ./eksctl.tar.gz
167160 tar -C $HOME/.local/bin/ -xf ./helmfile.tar.gz
168- mv sops $HOME/.local/bin/
169161
170162 chmod +x $HOME/.local/bin/*
171163 echo "$HOME/.local/bin" >> $GITHUB_PATH
@@ -209,6 +201,14 @@ jobs:
209201 echo "Waiting for Tailscale to be ready..."
210202 done
211203
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+
212212 - name : helmfile ${{ inputs.helmfileCommand }}
213213 run : |
214214 export $(echo ${{ inputs.envVariables }})
0 commit comments