attempt to use buildx cache
All checks were successful
CI / Build docker images (push) Successful in 6m45s

This commit is contained in:
2024-05-27 20:26:59 +08:00
parent 4d6bbc6dad
commit e941cd77c3
2 changed files with 13 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ on:
push: push:
branches: [ master ] branches: [ master ]
jobs: jobs:
docker: "Build docker images":
runs-on: woryzen runs-on: woryzen
steps: steps:
- -
@@ -27,8 +27,8 @@ jobs:
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: gitea.woggioni.net/woggioni/jupyter-python:latest tags: gitea.woggioni.net/woggioni/jupyter-python:latest
# cache-from: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-python:buildcache cache-from: type=local,src=~/.cache/buildx
# cache-to: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-python:buildcache,mode=max cache-to: type=local,dest=~/.cache/buildx,mode=max
- -
name: Build and push jupyter-ganymede image name: Build and push jupyter-ganymede image
uses: docker/build-push-action@v5.3.0 uses: docker/build-push-action@v5.3.0
@@ -37,3 +37,12 @@ jobs:
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: gitea.woggioni.net/woggioni/jupyter-ganymede:latest 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-

View File

@@ -11,7 +11,7 @@ from jupyter_core.paths import jupyter_data_dir
c = get_config() # noqa: F821 c = get_config() # noqa: F821
c.ServerApp.ip = "0.0.0.0" c.ServerApp.ip = "0.0.0.0"
c.ServerApp.open_browser = False 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 # to output both image/svg+xml and application/pdf plot formats in the notebook file
c.InlineBackend.figure_formats = {"png", "jpeg", "svg", "pdf"} c.InlineBackend.figure_formats = {"png", "jpeg", "svg", "pdf"}