diff --git a/.gitea/workflows/dockerfile_runner.yaml b/.gitea/workflows/dockerfile_runner.yaml index dc72aea..71015a5 100644 --- a/.gitea/workflows/dockerfile_runner.yaml +++ b/.gitea/workflows/dockerfile_runner.yaml @@ -7,6 +7,8 @@ on: jobs: Explore-Gitea-Actions: + env: + RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." @@ -27,12 +29,13 @@ jobs: echo "------------------------------------------------" echo "Next version: $next_version" - - uses: actions/cache@v3 + - name: Cache Docker layers + uses: actions/cache@v4 with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + path: ${{ runner.temp }}/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | - ${{ runner.os }}-pip- + ${{ runner.os }}-buildx- - name: inject cache into docker @@ -57,9 +60,9 @@ jobs: tags: | gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }} - 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 - + cache-from: type=local,src=${{ runner.temp }}/.buildx-cache + cache-to: type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max + - name: Rollout Django to force pulling the new image uses: actions-hub/kubectl@master env: