mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
12 lines
283 B
Bash
Executable file
12 lines
283 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xeou pipefail
|
|
|
|
BUILDX_VERSION=${1}
|
|
|
|
PACKAGE_VERSION=$(apt-cache policy docker-buildx-plugin | awk -v dv=${BUILDX_VERSION} '$1 ~ dv {print $1}')
|
|
|
|
apt-get update && apt-get install -y docker-buildx-plugin=${PACKAGE_VERSION}
|
|
|
|
apt-get -yq autoremove
|
|
apt-get clean -yqq
|