Skip to content

Commit 9bcdc72

Browse files
committed
chore(dockerfile): Use existing TARGETARCH arg
1 parent 3467b48 commit 9bcdc72

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.12-slim
22

3-
ARG TARGETPLATFORM
3+
ARG TARGETARCH
44

55
##
66
## Install kubectl and dependencies.
@@ -14,18 +14,18 @@ ENV HELM_VERSION="v3.6.2" \
1414
RUN apt-get update \
1515
&& apt-get install wget ca-certificates bash git git-crypt -y --no-install-recommends \
1616
# Download kubectl
17-
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/${TARGETPLATFORM}/kubectl -O /usr/local/bin/kubectl \
17+
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/${TARGETARCH}/kubectl -O /usr/local/bin/kubectl \
1818
&& chmod +x /usr/local/bin/kubectl \
1919
\
2020
# Download helm
21-
&& wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETPLATFORM}.tar.gz -O - | tar -xzO linux-${TARGETPLATFORM}/helm > /usr/local/bin/helm \
21+
&& wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz -O - | tar -xzO linux-${TARGETARCH}/helm > /usr/local/bin/helm \
2222
&& chmod +x /usr/local/bin/helm \
2323
\
2424
# Install helm-secrets plugin
2525
&& helm plugin install https://github.com/jkroepke/helm-secrets --version v4.2.2 \
2626
\
2727
# Download sops
28-
&& wget -q https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.${TARGETPLATFORM} -O /usr/local/bin/sops \
28+
&& wget -q https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.${TARGETARCH} -O /usr/local/bin/sops \
2929
&& chmod +x /usr/local/bin/sops \
3030
\
3131
&& apt-get clean \

0 commit comments

Comments
 (0)