another cache try
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
pierre geeraert
2025-12-04 23:17:08 +00:00
parent a3ee639d77
commit a1d831cdf2
+10 -7
View File
@@ -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: