try to use cache
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m40s

This commit is contained in:
Pierre Geeraert
2025-06-03 10:43:15 +01:00
parent 6a52ed2f66
commit 9afe770202
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -16,6 +16,13 @@ jobs:
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Cache pip
uses: actions/cache@v3
with:
path: /root/.cache/pip
key: pip-{{ hashFiles('requirements*.txt') }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -30,7 +37,10 @@ jobs:
uses: docker/build-push-action@v6
with:
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=gha
cache-to: type=gha,mode=max
- name: drop the pod to force pulling the new image
uses: actions-hub/kubectl@master
env: