14 - dnf install -y python3-pytest python3-pytest-cov python3-requests
16 - pytest-3 --junitxml=junit.xml --cov=build_manifest gitlab/build_manifest.py
19 - "gitlab/build_manifest.py"
20 coverage: '/TOTAL.*\s+(\d+%)$/'
27 image: "docker:stable"
31 # When using dind, it's wise to use the overlayfs driver for
32 # improved performance.
33 DOCKER_DRIVER: "overlay2"
36 - export IMAGE="${CI_REGISTRY_IMAGE}/${ARCH}/${TAG}"
37 - export REF="${IMAGE}:${CI_COMMIT_SHA}"
38 - export LATEST="${IMAGE}:latest"
40 - docker build --pull -f ${DOCKERFILE} -t ${REF} ${CONTEXT_DIR}
41 - docker image tag ${REF} ${LATEST}
45 if [ "$CI_COMMIT_REF_NAME" = "master" ]; then
46 docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
57 fedora amd64 run docker:
58 stage: "build runtime"
62 CONTEXT_DIR: "docker/runtime-images/"
63 DOCKERFILE: "docker/runtime-images/Dockerfile-fedora"
66 fedora amd64 build docker:
71 CONTEXT_DIR: "docker/build-base-images/"
72 DOCKERFILE: "docker/build-base-images/Dockerfile-fedora"
75 include: "gitlab/ci_template.yml"
77 # Overwrite the job with the same name that comes from the include template,
78 # in order to use the `:latest` tag of the image built
80 # This comes from the `include:` above
82 image: "${CI_REGISTRY_IMAGE}/amd64/fedora-build:latest"