mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
tests/docker: don't use BUILDKIT in GitLab either
Using BUILDKIT breaks with certain container registries such as CentOS, with docker build reporting an error such as failed to solve with frontend dockerfile.v0: failed to build LLB: failed to load cache key: unexpected status code https://registry.centos.org/v2/centos/manifests/7: 403 Forbidden Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Message-Id: <20210623142245.307776-3-berrange@redhat.com> Message-Id: <20210709143005.1554-11-alex.bennee@linaro.org>
This commit is contained in:
parent
51f5c849c1
commit
6ddc3dc7a8
|
@ -228,7 +228,9 @@ class Docker(object):
|
|||
def __init__(self):
|
||||
self._command = _guess_engine_command()
|
||||
|
||||
if "docker" in self._command and "TRAVIS" not in os.environ:
|
||||
if ("docker" in self._command and
|
||||
"TRAVIS" not in os.environ and
|
||||
"GITLAB_CI" not in os.environ):
|
||||
os.environ["DOCKER_BUILDKIT"] = "1"
|
||||
self._buildkit = True
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue