diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 4c1c09f..2953f22 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -46,8 +46,11 @@ jobs: tags: | ${{ env.REGISTRY }}/${{ gitea.repository_owner }}/blog-ahmza-com:latest ${{ env.REGISTRY }}/${{ gitea.repository_owner }}/blog-ahmza-com:${{ gitea.event.head_commit.id }} - cache-from: type=gha - cache-to: type=gha,mode=max + # Registry-backed build cache. The GitHub-hosted 'gha' cache is not + # reachable from self-hosted Gitea runners, so store the cache as a + # dedicated tag in the same registry instead. + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository_owner }}/blog-ahmza-com:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository_owner }}/blog-ahmza-com:buildcache,mode=max deploy: runs-on: ubuntu-latest needs: build