Message ID | 20230224125207.19616-4-farosas@suse.de |
---|---|
State | New |
Headers | show |
Series | ci: Speed up container stage | expand |
diff --git a/.gitlab-ci.d/container-template.yml b/.gitlab-ci.d/container-template.yml index 31e4e36a7d..e7c1fa1522 100644 --- a/.gitlab-ci.d/container-template.yml +++ b/.gitlab-ci.d/container-template.yml @@ -6,13 +6,11 @@ - 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" - docker pull "$TAG" || true - docker build --tag "$TAG" --cache-from "$TAG" --build-arg BUILDKIT_INLINE_CACHE=1
We're not using the COMMON_TAG and we cannot have a push to a different registry than we pull from because that would get in the way of forks testing their changes to a dockerfile. Signed-off-by: Fabiano Rosas <farosas@suse.de> --- .gitlab-ci.d/container-template.yml | 2 -- 1 file changed, 2 deletions(-)