modify cache directory
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m56s

This commit is contained in:
Pierre Geeraert
2025-06-03 11:39:40 +01:00
parent cb7a010fb6
commit 496f2b3bfb
+7 -7
View File
@@ -24,12 +24,11 @@ jobs:
key: pip
restore-keys: pip
- name: Cache docker-ci
uses: actions/cache@v4
- name: inject cache into docker
uses: reproducible-containers/buildkit-cache-dance@v3.1.0
with:
path: /root/.cache/docker-ci
key: docker-ci
restore-keys: docker-ci
cache-source: /root/.cache/pip
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -47,8 +46,9 @@ jobs:
push: true
#build-contexts: pip_cache=${{steps.vars.outputs.pip-dir}}
tags: gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest
cache-from: type=local,src=/root/.cache/docker-ci
cache-to: type=local,dest=/root/.cache/docker-ci,mode=max
cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache
cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache,mode=max
- name: drop the pod to force pulling the new image
uses: actions-hub/kubectl@master
env: