chore: fixed alpine curl bug

This commit is contained in:
shadowlegend 2025-04-01 22:02:39 +07:00
parent ad6486c49a
commit c5e409636c

View File

@ -9,13 +9,13 @@ spec:
spec:
initContainers:
- name: download-copy-timoni
image: alpine/curl
image: rancher/curlimages-curl:7.73.0
command: [/bin/sh]
args:
- -c
- >-
curl -sLO https://github.com/stefanprodan/timoni/releases/download/v0.23.0/timoni_0.23.0_linux_$(arch | sed 's/aarch/arm/' | sed 's/x86_64/amd64/').tar.gz &&
tar -xzf timoni_0.23.0_linux_$(arch | sed 's/aarch/arm/' | sed 's/x86_64/amd64/').tar.gz -C /var/run/argocd/ timoni
curl -sL -o /tmp/timoni.tar.gz https://github.com/stefanprodan/timoni/releases/download/v0.24.0/timoni_0.24.0_linux_$(arch | sed 's/aarch/arm/' | sed 's/x86_64/amd64/').tar.gz &&
tar -xzf /tmp/timoni.tar.gz -C /var/run/argocd/ timoni
volumeMounts:
- mountPath: /var/run/argocd
name: var-files