mirror of
https://github.com/qemu/qemu.git
synced 2024-12-11 12:43:55 +08:00
e312d1fdbb
This converts the main build and container jobs to use the base job rules, defining the following new variables - QEMU_JOB_SKIPPED - jobs that are known to be currently broken and should not be run. Can still be manually launched if desired. - QEMU_JOB_AVOCADO - jobs that run the Avocado integration test harness. - QEMU_JOB_PUBLISH - jobs that publish content after the branch is merged upstream As build-tools-and-docs runs on master we declare the requirement of building amd64-debian-container optional as it should already exits once we merge. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220526110705.59952-5-berrange@redhat.com> [AJB: fix upstream typo, mention optional container req] Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220527153603.887929-32-alex.bennee@linaro.org>
23 lines
725 B
YAML
23 lines
725 B
YAML
.container_job_template:
|
|
extends: .base_job_template
|
|
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
|