vergabe-teilnahme/scripts/ci-docker.sh
tegwick fa9f08268a
All checks were successful
Application acceptance / application-tests (push) Successful in 5s
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 39s
Application acceptance / application-tests (pull_request) Successful in 54s
Enable pinned BuildKit support on the Railiance CI runner
Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
2026-09-08 13:07:22 +02:00

19 lines
1.1 KiB
Bash

# Source from a CI step after archive checkout. Isolate tool and login state
# for this invocation; do not modify the runner's persistent Docker config.
set -eu
VERGABE_DOCKER_TOOLS="$(mktemp -d)"
export DOCKER_CONFIG="${VERGABE_DOCKER_TOOLS}/config"
trap 'rm -rf "${VERGABE_DOCKER_TOOLS}"' EXIT
mkdir -p "${VERGABE_DOCKER_TOOLS}/bin" "${DOCKER_CONFIG}/cli-plugins"
wget -qO "${VERGABE_DOCKER_TOOLS}/docker.tgz" \
https://download.docker.com/linux/static/stable/x86_64/docker-27.3.1.tgz
tar xzf "${VERGABE_DOCKER_TOOLS}/docker.tgz" --strip-components=1 \
-C "${VERGABE_DOCKER_TOOLS}/bin" docker/docker
wget -qO "${DOCKER_CONFIG}/cli-plugins/docker-buildx" \
https://github.com/docker/buildx/releases/download/v0.19.3/buildx-v0.19.3.linux-amd64
# Pinned from the upstream v0.19.3 checksums.txt release asset.
echo "32ed111e941e385c2fb8261eba06a4056915718fd606f8278834ac1931d261a2 ${DOCKER_CONFIG}/cli-plugins/docker-buildx" | sha256sum -c -
chmod +x "${DOCKER_CONFIG}/cli-plugins/docker-buildx"
export PATH="${VERGABE_DOCKER_TOOLS}/bin:${PATH}"
export DOCKER_BUILDKIT=1
docker buildx version