Merge pull request 'ci: switch buildx cache from registry to local volume' (#116) from ci/local-buildx-cache into main
All checks were successful
Build Docker Image / build (push) Successful in 2m51s
All checks were successful
Build Docker Image / build (push) Successful in 2m51s
This commit is contained in:
commit
8940965ff8
@ -20,6 +20,9 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
volumes:
|
||||
- pd-buildx-cache:/opt/buildx-cache
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@ -58,8 +61,13 @@ jobs:
|
||||
tags: |
|
||||
manticorum67/paper-dynasty-discordapp:${{ steps.version.outputs.version }}
|
||||
manticorum67/paper-dynasty-discordapp:${{ steps.version.outputs.environment }}
|
||||
cache-from: type=registry,ref=manticorum67/paper-dynasty-discordapp:buildcache
|
||||
cache-to: type=registry,ref=manticorum67/paper-dynasty-discordapp:buildcache,mode=max
|
||||
cache-from: type=local,src=/opt/buildx-cache/pd-discord
|
||||
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
|
||||
run: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user