ci: switch buildx cache from registry to local volume
All checks were successful
Ruff Lint / lint (pull_request) Successful in 1m20s
All checks were successful
Ruff Lint / lint (pull_request) Successful in 1m20s
Replaces type=registry cache (which causes 400 errors from Docker Hub due to stale buildx builders) with type=local backed by a named Docker volume on the runner. Adds cache rotation step to prevent unbounded growth. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f85ead1f60
commit
6e45686457
@ -20,6 +20,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- pd-buildx-cache:/opt/buildx-cache
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@ -58,8 +61,13 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
manticorum67/paper-dynasty-discordapp:${{ steps.version.outputs.version }}
|
manticorum67/paper-dynasty-discordapp:${{ steps.version.outputs.version }}
|
||||||
manticorum67/paper-dynasty-discordapp:${{ steps.version.outputs.environment }}
|
manticorum67/paper-dynasty-discordapp:${{ steps.version.outputs.environment }}
|
||||||
cache-from: type=registry,ref=manticorum67/paper-dynasty-discordapp:buildcache
|
cache-from: type=local,src=/opt/buildx-cache/pd-discord
|
||||||
cache-to: type=registry,ref=manticorum67/paper-dynasty-discordapp:buildcache,mode=max
|
cache-to: type=local,dest=/opt/buildx-cache/pd-discord-new,mode=max
|
||||||
|
|
||||||
|
- name: Rotate cache
|
||||||
|
run: |
|
||||||
|
rm -rf /opt/buildx-cache/pd-discord
|
||||||
|
mv /opt/buildx-cache/pd-discord-new /opt/buildx-cache/pd-discord
|
||||||
|
|
||||||
- name: Build Summary
|
- name: Build Summary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user