From 535512dd564a1162e31699c1b7a3d86315babd96 Mon Sep 17 00:00:00 2001 From: Farid Siddiqi Date: Tue, 23 Dec 2025 18:33:51 -0800 Subject: [PATCH] update caching --- .gitea/workflows/build-deploy.yml | 2 ++ deployment/ansible/site.yml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml index 80baa58..44de289 100644 --- a/.gitea/workflows/build-deploy.yml +++ b/.gitea/workflows/build-deploy.yml @@ -39,6 +39,8 @@ jobs: - name: Cache Go modules uses: actions/cache@v3 + timeout-minutes: 2 + continue-on-error: true with: path: | ~/.cache/go-build diff --git a/deployment/ansible/site.yml b/deployment/ansible/site.yml index 02c2d2d..e9279af 100644 --- a/deployment/ansible/site.yml +++ b/deployment/ansible/site.yml @@ -86,6 +86,8 @@ - "{{ gitea_home }}/data" - "{{ gitea_home }}/log" - "{{ gitea_home }}/repositories" + - "{{ gitea_home }}/data/actions_artifacts" + - "{{ gitea_home }}/data/actions_cache" - name: Download gitea binary ansible.builtin.get_url: @@ -195,6 +197,13 @@ [actions] ENABLED = true + [actions.artifacts] + STORAGE_TYPE = local + MINIO_BASE_PATH = actions_artifacts/ + + [actions.artifacts.local] + PATH = {{ gitea_home }}/data/actions_artifacts + [log] MODE = file LEVEL = info @@ -351,6 +360,7 @@ daemon_reload: true name: "gitea-runner-{{ item }}" enabled: true + state: started loop: "{{ range(1, runner_count + 1) | list }}" - name: Configure nginx reverse proxy (HTTP only for now)