mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
13 lines
475 B
Bash
Executable file
13 lines
475 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xeou pipefail
|
|
|
|
BUILDX_VERSION=${1}
|
|
BUILDX_DOWNLOAD_SHA256=${2}
|
|
BUILDX_DOWNLOAD_URL="https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-$(dpkg --print-architecture)"
|
|
|
|
curl -fsSL "${BUILDX_DOWNLOAD_URL}" -o docker-buildx
|
|
echo "${BUILDX_DOWNLOAD_SHA256} docker-buildx" | sha256sum -c -
|
|
|
|
mkdir -p /usr/local/lib/docker/cli-plugins
|
|
chmod +x docker-buildx && mv docker-buildx /usr/local/lib/docker/cli-plugins/
|