mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Remove specific buildx versions
This commit is contained in:
parent
41165c16ff
commit
6994bdfc9c
6 changed files with 3 additions and 38 deletions
|
|
@ -1,12 +0,0 @@
|
|||
#!/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
|
||||
|
|
@ -24,7 +24,8 @@ PACKAGE_VERSION=$(apt-cache policy docker-ce | awk -v dv=${DOCKER_VERSION} '$1 ~
|
|||
|
||||
apt-get install -y \
|
||||
docker-ce=${PACKAGE_VERSION} \
|
||||
docker-ce-cli=${PACKAGE_VERSION}
|
||||
docker-ce-cli=${PACKAGE_VERSION} \
|
||||
docker-buildx-plugin
|
||||
|
||||
apt-get -yq autoremove
|
||||
apt-get clean -yqq
|
||||
|
|
|
|||
|
|
@ -173,23 +173,6 @@ function print_docker_args() {
|
|||
printf -- "--build-arg DOCKER_VERSION=%s " "$1"
|
||||
}
|
||||
|
||||
function print_buildx_args() {
|
||||
case "$1" in
|
||||
0.8)
|
||||
BUILDX_VERSION=0.8.2
|
||||
;;
|
||||
0.9)
|
||||
BUILDX_VERSION=0.9.1
|
||||
;;
|
||||
0.10)
|
||||
BUILDX_VERSION=0.10.2
|
||||
;;
|
||||
*) fail "Unknown buildx version $1" ;;
|
||||
esac
|
||||
|
||||
printf -- "--build-arg BUILDX_VERSION=%s " "$BUILDX_VERSION"
|
||||
}
|
||||
|
||||
function print_graphicsmagick_args() {
|
||||
case "$1" in
|
||||
1.3.29)
|
||||
|
|
@ -370,7 +353,6 @@ function parse_arguments() {
|
|||
RUST) print_rust_args $version ;;
|
||||
CHROME) print_chrome_args $version ;;
|
||||
DOCKER) print_docker_args $version ;;
|
||||
BUILDX) print_buildx_args $version ;;
|
||||
GIT) print_git_args $version ;;
|
||||
LFS) print_lfs_args $version ;;
|
||||
NODE) print_node_args $version ;;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# various variable operations used in this script.
|
||||
|
||||
PATH_TOOLS=(DEBIAN OS UBI RUBY GOLANG RUST NODE POSTGRESQL)
|
||||
TAG_TOOLS=(BUNDLER RUBYGEMS GIT LFS CHROME YARN GRAPHICSMAGICK BAZELISK DOCKER BUILDX GCLOUD KUBECTL HELM)
|
||||
TAG_TOOLS=(BUNDLER RUBYGEMS GIT LFS CHROME YARN GRAPHICSMAGICK BAZELISK DOCKER GCLOUD KUBECTL HELM)
|
||||
|
||||
# Generate the docker image path using the components that were specified via
|
||||
# variables.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue