Skip to content

Commit 134924d

Browse files
authored
ci: add fallback for helm install when get.helm.sh is down (#21268)
Add a fallback step that installs helm via apt from Buildkite's repository if the primary `azure/setup-helm` action fails. This makes CI resilient to `get.helm.sh` outages while preserving the caching benefits of the action when it works. ## Changes - Primary: `azure/setup-helm` with `continue-on-error: true` - Fallback: apt install from Buildkite's helm-debian repository (only runs if primary fails) The fallback uses GPG-signed packages from the [official Helm apt repository](https://helm.sh/docs/intro/install/#from-apt-debianubuntu) hosted by Buildkite. ## Background On Oct 29, 2025, `get.helm.sh` experienced an outage that broke CI. A workaround was applied (#20552) but later reverted. This PR makes the workaround automatic - it only kicks in when needed. Fixes: coder/internal#1109
1 parent 42e964f commit 134924d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,22 @@ jobs:
207207
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
208208
with:
209209
version: v3.9.2
210+
continue-on-error: true
211+
id: setup-helm
212+
213+
- name: Install helm (fallback)
214+
if: steps.setup-helm.outcome == 'failure'
215+
# Fallback to Buildkite's apt repository if get.helm.sh is down.
216+
# See: https://github.com/coder/internal/issues/1109
217+
run: |
218+
set -euo pipefail
219+
curl -fsSL https://packages.buildkite.com/helm-linux/helm-debian/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
220+
echo "deb [signed-by=/usr/share/keyrings/helm.gpg] https://packages.buildkite.com/helm-linux/helm-debian/any/ any main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
221+
sudo apt-get update
222+
sudo apt-get install -y helm=3.9.2-1
223+
224+
- name: Verify helm version
225+
run: helm version --short
210226

211227
- name: make lint
212228
run: |

0 commit comments

Comments
 (0)