From c4227a0eb11d0693e39b69a50c26a34eb53ba07a Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 19 May 2026 21:19:10 -0700 Subject: [PATCH] fix(s3): use us-east-1 region and force S3 cache fetch in CI --- .gitea/actions/go-cache/action.yml | 2 +- .gitea/workflows/ci.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/actions/go-cache/action.yml b/.gitea/actions/go-cache/action.yml index 9bf88c3..b067aaa 100644 --- a/.gitea/actions/go-cache/action.yml +++ b/.gitea/actions/go-cache/action.yml @@ -21,7 +21,7 @@ inputs: required: false s3-region: description: S3 region name. - default: auto + default: us-east-1 required: false s3-endpoint: description: Optional S3-compatible endpoint URL, for example https://s3.example.com. diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2277021..5edaa5d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -30,12 +30,13 @@ jobs: env: SCCACHE_AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }} SCCACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }} - AWS_REGION: auto + AWS_REGION: us-east-1 - name: Clean Local Go Cache (Start Fresh) run: | echo "Clearing local cache..." go clean -cache + rm -rf ~/.cache/go-cache - name: Cold Build (Cache Miss / Populates S3) run: | @@ -46,6 +47,7 @@ jobs: run: | echo "Clearing local cache to force remote S3 fetch..." go clean -cache + rm -rf ~/.cache/go-cache - name: Warm Build (Cache Hit / Fetches from S3) run: |