disable docker cache

This commit is contained in:
smf
2024-04-29 12:22:59 +08:00
parent a577dcff5b
commit 32846d8f56

View File

@@ -78,13 +78,13 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern=v{{major}}
- name: Cache docker buildx main
uses: actions/cache@v4
with:
path: /tmp/.buildx-main-cache
key: ${{ runner.os }}-buildx-main-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-main-
# - name: Cache docker buildx main
# uses: actions/cache@v4
# with:
# path: /tmp/.buildx-main-cache
# key: ${{ runner.os }}-buildx-main-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-main-
- name: Build and push
uses: docker/build-push-action@v4
@@ -101,13 +101,13 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-main-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-main-cache-new
# cache-from: type=local,src=/tmp/.buildx-main-cache
# cache-to: type=local,mode=max,dest=/tmp/.buildx-main-cache-new
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-main-cache
mv /tmp/.buildx-main-cache-new /tmp/.buildx-main-cache
# - # Temp fix
# # https://github.com/docker/build-push-action/issues/252
# # https://github.com/moby/buildkit/issues/1896
# name: Move cache
# run: |
# rm -rf /tmp/.buildx-main-cache
# mv /tmp/.buildx-main-cache-new /tmp/.buildx-main-cache