gitlab: explicitly reference the upstream registry
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 20 May 2021 17:42:57 +0000 (18:42 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 25 May 2021 08:22:47 +0000 (09:22 +0100)
Since c8e6793903 ("containers.yml: build with docker.py tooling") we
don't need to manually pull stuff from the upstream repository. Just
set the -r field to explicitly use that rather than the current
registry.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210520174303.12310-3-alex.bennee@linaro.org>

.gitlab-ci.d/containers.yml

index 765408ae274196b0337ffd33f2012a0d4c8820a6..3fb3c14f06426ed59c73f1137b315cfa46ee3322 100644 (file)
   script:
     - echo "TAG:$TAG"
     - echo "COMMON_TAG:$COMMON_TAG"
-    - docker pull "$TAG" || docker pull "$COMMON_TAG" || true
     - ./tests/docker/docker.py --engine docker build
           -t "qemu/$NAME" -f "tests/docker/dockerfiles/$NAME.docker"
-          -r $CI_REGISTRY_IMAGE
+          -r $CI_REGISTRY/qemu-project/qemu
     - docker tag "qemu/$NAME" "$TAG"
     - docker push "$TAG"
   after_script: