mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Update scripts to compile arm64 based images
This changes all binaries to be platform dependent instead of being amd64 hardcoded.
This commit is contained in:
parent
65292a9a9c
commit
384f6231b4
9 changed files with 91 additions and 19 deletions
|
|
@ -4,9 +4,9 @@ set -xeou pipefail
|
|||
|
||||
KUBECTL_VERSION=${1}
|
||||
KUBECTL_DOWNLOAD_SHA256=${2}
|
||||
KUBECTL_DOWNLOAD_URL="https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64"
|
||||
KUBECTL_DOWNLOAD_URL="https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/$(dpkg --print-architecture)/kubectl"
|
||||
|
||||
curl -fsSL "${KUBECTL_DOWNLOAD_URL}/kubectl" -o kubectl
|
||||
curl -fsSL "${KUBECTL_DOWNLOAD_URL}" -o kubectl
|
||||
echo "${KUBECTL_DOWNLOAD_SHA256} kubectl" | sha256sum -c -
|
||||
|
||||
chmod +x kubectl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue