ci: switch Docker build cache from type=gha to type=registry
Some checks failed
Build Docker Image / build (pull_request) Failing after 14s
Some checks failed
Build Docker Image / build (pull_request) Failing after 14s
The gha cache backend silently fails on Gitea Actions due to Docker networking issues between the Buildx builder container and the act_runner cache server. Registry-based caching stores layers on Docker Hub, which is more reliable for self-hosted runners.
This commit is contained in:
parent
65c00800d2
commit
305e1b0ffa
@ -194,8 +194,8 @@ jobs:
|
|||||||
manticorum67/paper-dynasty-database:latest
|
manticorum67/paper-dynasty-database:latest
|
||||||
manticorum67/paper-dynasty-database:v${{ steps.meta.outputs.version }}
|
manticorum67/paper-dynasty-database:v${{ steps.meta.outputs.version }}
|
||||||
manticorum67/paper-dynasty-database:${{ steps.meta.outputs.version_sha }}
|
manticorum67/paper-dynasty-database:${{ steps.meta.outputs.version_sha }}
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=manticorum67/paper-dynasty-database:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=manticorum67/paper-dynasty-database:buildcache,mode=max
|
||||||
|
|
||||||
# ==============================================
|
# ==============================================
|
||||||
# 7. BUILD SUMMARY
|
# 7. BUILD SUMMARY
|
||||||
@ -368,8 +368,8 @@ jobs:
|
|||||||
# - Check webhook still exists in Discord channel settings
|
# - Check webhook still exists in Discord channel settings
|
||||||
#
|
#
|
||||||
# 4. Build cache not working
|
# 4. Build cache not working
|
||||||
# - GitHub Actions cache is stored per repository
|
# - Uses registry-based caching (pushes cache layers to Docker Hub)
|
||||||
# - Cache is shared across branches
|
# - Requires Docker Hub login to read/write cache
|
||||||
# - May need to clear cache if corrupted
|
# - To clear cache: delete the buildcache tag on Docker Hub
|
||||||
#
|
#
|
||||||
# ==============================================
|
# ==============================================
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user