diff --git a/Dockerfile b/Dockerfile index e81a061f5a714..54dcb6a28b0a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,12 +92,13 @@ COPY ["ui/", "."] ARG ARGO_VERSION=latest ENV ARGO_VERSION=$ARGO_VERSION -RUN HOST_ARCH='amd64' NODE_ENV='production' NODE_ONLINE_ENV='online' NODE_OPTIONS=--max_old_space_size=8192 yarn build +ARG TARGETARCH +RUN HOST_ARCH=$TARGETARCH NODE_ENV='production' NODE_ONLINE_ENV='online' NODE_OPTIONS=--max_old_space_size=8192 yarn build #################################################################################################### # Argo CD Build stage which performs the actual build of Argo CD binaries #################################################################################################### -FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.18 AS argocd-build +FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.18 AS argocd-build WORKDIR /go/src/github.com/argoproj/argo-cd diff --git a/docs/operator-manual/argocd-cm.yaml b/docs/operator-manual/argocd-cm.yaml index ca8bc0a8e001d..a378a5f154ab5 100644 --- a/docs/operator-manual/argocd-cm.yaml +++ b/docs/operator-manual/argocd-cm.yaml @@ -36,8 +36,9 @@ data: help.chatUrl: "https://mycorp.slack.com/argo-cd" # the text for getting chat help, defaults to "Chat now!" help.chatText: "Chat now!" - # The URLs to download additional ArgoCD binaries (besides the Linux amd64 binary included by default) + # The URLs to download additional ArgoCD binaries (besides the Linux with current platform binary included by default) # for different OS architectures. If provided, additional download buttons will be displayed on the help page. + help.download.linux-amd64: "path-or-url-to-download" help.download.linux-arm64: "path-or-url-to-download" help.download.linux-ppc64le: "path-or-url-to-download" help.download.linux-s390x: "path-or-url-to-download" diff --git a/ui/src/app/help/components/help.tsx b/ui/src/app/help/components/help.tsx index e7c9b99ef155f..d27427c089e67 100644 --- a/ui/src/app/help/components/help.tsx +++ b/ui/src/app/help/components/help.tsx @@ -38,7 +38,7 @@ export const Help = () => {
Want to download the CLI tool?
- Linux (amd64) + Linux ({process.env.HOST_ARCH}) {Object.keys(binaryUrls || {}).map(binaryName => {