fix lil #43
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@@ -94,11 +94,16 @@ jobs:
|
||||
cache-to: |
|
||||
type=local,dest=/cache/buildx-cache-new,mode=max
|
||||
|
||||
- name: Move new cache
|
||||
- name: Move new cache if it exists
|
||||
if: always()
|
||||
run: |
|
||||
rm -rf /cache/buildx-cache
|
||||
mv /cache/buildx-cache-new /cache/buildx-cache
|
||||
if [ -d /cache/buildx-cache-new ]; then
|
||||
echo "Found new buildx cache, replacing old one..."
|
||||
rm -rf /cache/buildx-cache
|
||||
mv /cache/buildx-cache-new /cache/buildx-cache
|
||||
else
|
||||
echo "No new buildx cache found, keeping old one."
|
||||
fi
|
||||
|
||||
- name: Save Docker layer cache
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user