feat: add caching for Gitea Actions to improve build performance
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
This commit is contained in:
@@ -19,6 +19,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cache Gitea Actions
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
# The path to the directory that should be cached
|
||||||
|
path: /root/.cache/act
|
||||||
|
# A key to identify the cache
|
||||||
|
key: ${{ runner.os }}-gitea-actions-${{ hashFiles(''.workflow) }}
|
||||||
|
# A fallback key to use if the primary key doesn't match
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gitea-actions-
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user