1 .container_job_template:
2 extends: .base_job_template
8 - export TAG="$CI_REGISTRY_IMAGE/qemu/$NAME:$QEMU_CI_CONTAINER_TAG"
9 # Always ':latest' because we always use upstream as a common cache source
10 - export COMMON_TAG="$CI_REGISTRY/qemu-project/qemu/qemu/$NAME:latest"
11 - docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
12 - until docker info; do sleep 1; done
15 - echo "COMMON_TAG:$COMMON_TAG"
16 - docker build --tag "$TAG" --cache-from "$TAG" --cache-from "$COMMON_TAG"
17 --build-arg BUILDKIT_INLINE_CACHE=1
18 -f "tests/docker/dockerfiles/$NAME.docker" "."