2021-05-19 20:54:57 +02:00
|
|
|
.container_job_template:
|
2022-05-27 17:36:01 +02:00
|
|
|
extends: .base_job_template
|
2021-05-19 20:54:57 +02:00
|
|
|
image: docker:stable
|
|
|
|
stage: containers
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- export TAG="$CI_REGISTRY_IMAGE/qemu/$NAME:latest"
|
|
|
|
- export COMMON_TAG="$CI_REGISTRY/qemu-project/qemu/$NAME:latest"
|
|
|
|
- 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"
|
|
|
|
- ./tests/docker/docker.py --engine docker build
|
|
|
|
-t "qemu/$NAME" -f "tests/docker/dockerfiles/$NAME.docker"
|
|
|
|
-r $CI_REGISTRY/qemu-project/qemu
|
|
|
|
- docker tag "qemu/$NAME" "$TAG"
|
|
|
|
- docker push "$TAG"
|
|
|
|
after_script:
|
|
|
|
- docker logout
|