From a5e36c9aabf7cb056360cfccf7e5ad73f9764180 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 17 Dec 2024 09:41:13 -0800 Subject: [PATCH] fix: master docker builds fail because of multi-platform builds can't --load (#31493) --- .github/workflows/docker.yml | 4 ++++ superset/__init__.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 54893a137aff0..93a9d4c9f4b63 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -82,6 +82,10 @@ jobs: --extra-flags "--build-arg INCLUDE_CHROMIUM=false" \ $PLATFORM_ARG + - name: Docker pull + if: steps.check.outputs.python || steps.check.outputs.frontend || steps.check.outputs.docker + run: docker pull apache/superset:GHA-${GITHUB_RUN_ID} + - name: Print docker stats if: steps.check.outputs.python || steps.check.outputs.frontend || steps.check.outputs.docker run: | diff --git a/superset/__init__.py b/superset/__init__.py index cbab58e0d2c90..c97580b122cea 100644 --- a/superset/__init__.py +++ b/superset/__init__.py @@ -34,7 +34,8 @@ # All of the fields located here should be considered legacy. The correct way # to declare "global" dependencies is to define it in extensions.py, # then initialize it in app.create_app(). These fields will be removed -# in subsequent PRs as things are migrated towards the factory pattern +# in subsequent PRs as things are migrated towards the factory +# pattern app: Flask = current_app cache = cache_manager.cache conf = LocalProxy(lambda: current_app.config)