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}
43 # If we are in a fork, push the image to the reigstry regardless the branch
45 if [ "$CI_PROJECT_NAMESPACE" != "gstreamer" ]; then
46 docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
51 # Push the images to the upstream registry
53 if [ "$CI_COMMIT_REF_NAME" = "master" -a "$CI_PROJECT_NAMESPACE" = "gstreamer" ]; then
54 docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
65 fedora amd64 run docker:
66 stage: "build runtime"
70 CONTEXT_DIR: "docker/runtime-images/"
71 DOCKERFILE: "docker/runtime-images/Dockerfile-fedora"
74 fedora amd64 build docker:
79 CONTEXT_DIR: "docker/build-base-images/"
80 DOCKERFILE: "docker/build-base-images/Dockerfile-fedora"
83 include: "gitlab/ci_template.yml"
85 # Overwrite the job with the same name that comes from the include template,
86 # in order to use the `:latest` tag of the image built
88 # This comes from the `include:` above
90 image: "${CI_REGISTRY_IMAGE}/amd64/fedora-build:latest"