2021-05-19 21:54:57 +03:00
|
|
|
.container_job_template:
|
2022-05-27 18:36:01 +03:00
|
|
|
extends: .base_job_template
|
2021-05-19 21:54:57 +03:00
|
|
|
image: docker:stable
|
|
|
|
stage: containers
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- export TAG="$CI_REGISTRY_IMAGE/qemu/$NAME:latest"
|
2023-02-28 22:06:44 +03:00
|
|
|
- export COMMON_TAG="$CI_REGISTRY/qemu-project/qemu/qemu/$NAME:latest"
|
2021-05-19 21:54:57 +03:00
|
|
|
- apk add python3
|
|
|
|
- docker info
|
|
|
|
- docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
|
|
|
|
script:
|
|
|
|
- echo "TAG:$TAG"
|
|
|
|
- echo "COMMON_TAG:$COMMON_TAG"
|
2023-02-28 22:06:44 +03:00
|
|
|
- docker build --tag "$TAG" --cache-from "$TAG" --cache-from "$COMMON_TAG"
|
|
|
|
--build-arg BUILDKIT_INLINE_CACHE=1
|
|
|
|
-f "tests/docker/dockerfiles/$NAME.docker" "."
|
2021-05-19 21:54:57 +03:00
|
|
|
- docker push "$TAG"
|
|
|
|
after_script:
|
|
|
|
- docker logout
|