From e941cd77c318523dd619a6cec455e29db04e2278 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Mon, 27 May 2024 20:26:59 +0800 Subject: [PATCH] attempt to use buildx cache --- .gitea/workflows/build.yaml | 15 ++++++++++++--- jupyter-python/jupyter_server_config.py | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index dbdc7f0..b99368e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,7 +3,7 @@ on: push: branches: [ master ] jobs: - docker: + "Build docker images": runs-on: woryzen steps: - @@ -27,8 +27,8 @@ jobs: platforms: linux/amd64 push: true tags: gitea.woggioni.net/woggioni/jupyter-python:latest - # cache-from: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-python:buildcache - # cache-to: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-python:buildcache,mode=max + cache-from: type=local,src=~/.cache/buildx + cache-to: type=local,dest=~/.cache/buildx,mode=max - name: Build and push jupyter-ganymede image uses: docker/build-push-action@v5.3.0 @@ -37,3 +37,12 @@ jobs: platforms: linux/amd64 push: true tags: gitea.woggioni.net/woggioni/jupyter-ganymede:latest + cache-from: type=local,src=~/.cache/buildx + cache-to: type=local,dest=~/.cache/buildx,mode=max + - name: Cache Buildx cache + uses: actions/cache@v4.0.2 + with: + path: ~/.cache/buildx + key: ${{ runner.os }}-buildx-${{ gitea.sha }} + restore-keys: | + ${{ runner.os }}-buildx- \ No newline at end of file diff --git a/jupyter-python/jupyter_server_config.py b/jupyter-python/jupyter_server_config.py index c0cca3a..10c6b2d 100644 --- a/jupyter-python/jupyter_server_config.py +++ b/jupyter-python/jupyter_server_config.py @@ -11,7 +11,7 @@ from jupyter_core.paths import jupyter_data_dir c = get_config() # noqa: F821 c.ServerApp.ip = "0.0.0.0" c.ServerApp.open_browser = False - +c.Completer.use_jedi = False # to output both image/svg+xml and application/pdf plot formats in the notebook file c.InlineBackend.figure_formats = {"png", "jpeg", "svg", "pdf"}