|
17 | 17 | pull_request: |
18 | 18 | branches: |
19 | 19 | - master |
| 20 | + workflow_dispatch: |
20 | 21 |
|
21 | 22 | permissions: read-all |
22 | 23 |
|
@@ -315,14 +316,36 @@ jobs: |
315 | 316 | sleep 10 |
316 | 317 | done |
317 | 318 |
|
318 | | - - name: Pre-pull Helm repos |
| 319 | + - name: Pre-pull Helm repos and charts (with retry) |
319 | 320 | run: | |
320 | 321 | retry() { local cmd="$*" attempt=1; until $cmd; do attempt=$((attempt+1)); [ $attempt -gt 3 ] && return 1; sleep $((attempt*5)); done; } |
321 | 322 | retry helm repo add bitnami https://charts.bitnami.com/bitnami 2>/dev/null || true |
| 323 | + # bitnami retired charts.bitnami.com/bitnami — old versions like 12.5.6 |
| 324 | + # are only available via the archive index on GitHub. |
| 325 | + retry helm repo add bitnami-archive \ |
| 326 | + https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami \ |
| 327 | + 2>/dev/null || true |
322 | 328 | retry helm repo add argo https://argoproj.github.io/argo-helm 2>/dev/null || true |
323 | 329 | retry helm repo add metaflow-tools https://outerbounds.github.io/metaflow-tools 2>/dev/null || true |
324 | 330 | retry helm repo update || true |
325 | 331 |
|
| 332 | + HELM_CACHE="$HOME/.local/share/tilt-dev/.helm" |
| 333 | +
|
| 334 | + # Argo Workflows 0.45.2 (k8s + argo backends) |
| 335 | + mkdir -p "$HELM_CACHE/argo/0.45.2" |
| 336 | + [ -d "$HELM_CACHE/argo/0.45.2/argo-workflows" ] || \ |
| 337 | + retry helm pull argo/argo-workflows --version 0.45.2 --untar \ |
| 338 | + --destination "$HELM_CACHE/argo/0.45.2" || true |
| 339 | +
|
| 340 | + # PostgreSQL 12.5.6 — bitnami retired the chart CDN so pull from their |
| 341 | + # GitHub archive index which still hosts the full back-catalogue. |
| 342 | + mkdir -p "$HELM_CACHE/postgresql/12.5.6" |
| 343 | + [ -d "$HELM_CACHE/postgresql/12.5.6/postgresql" ] || \ |
| 344 | + retry helm pull bitnami-archive/postgresql --version 12.5.6 --untar \ |
| 345 | + --destination "$HELM_CACHE/postgresql/12.5.6" || \ |
| 346 | + retry helm pull bitnami/postgresql --version 12.5.6 --untar \ |
| 347 | + --destination "$HELM_CACHE/postgresql/12.5.6" || true |
| 348 | +
|
326 | 349 | - name: Start devstack |
327 | 350 | working-directory: devtools |
328 | 351 | run: ci/start-devstack.sh |
|
0 commit comments