fix(ci): deploy uses alpine/k8s (has /bin/sh); registry.k8s.io/kubectl is distroless

registry.k8s.io/kubectl is distroless — no /bin/sh — so the multi-command deploy script failed with
exit 64 (no such file /bin/sh). alpine/k8s bundles kubectl on an Alpine base with a shell.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-06-15 22:14:07 +02:00
parent aef1412f66
commit 7f54941ca4

View File

@@ -108,7 +108,7 @@ spec:
- { name: git-ssh-key, mountPath: /etc/git-ssh, readOnly: true }
- { name: workspace, mountPath: /workspace }
container:
image: registry.k8s.io/kubectl:v1.31.0 # bitnami/kubectl was removed from Docker Hub (2025); use the official k8s image
image: alpine/k8s:1.31.0 # Alpine-based (has /bin/sh + kubectl). NOT registry.k8s.io/kubectl — that's distroless (no shell) and the deploy runs a shell script. bitnami/kubectl was removed from Docker Hub (2025).
command: [/bin/sh, -c]
args:
- |