cache
This commit is contained in:
26
.github/workflows/publish_docker.yml
vendored
26
.github/workflows/publish_docker.yml
vendored
@@ -78,13 +78,13 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern=v{{major}}
|
type=semver,pattern=v{{major}}
|
||||||
|
|
||||||
# - name: Cache docker buildx main
|
- name: Cache docker buildx main
|
||||||
# uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
# with:
|
with:
|
||||||
# path: /tmp/.buildx-main-cache
|
path: /tmp/.buildx-main-cache
|
||||||
# key: ${{ runner.os }}-buildx-main-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-main-${{ github.sha }}
|
||||||
# restore-keys: |
|
restore-keys: |
|
||||||
# ${{ runner.os }}-buildx-main-
|
${{ runner.os }}-buildx-main-
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
@@ -101,5 +101,13 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
# cache-from: type=local,src=/tmp/.buildx-main-cache
|
cache-from: type=local,src=/tmp/.buildx-main-cache
|
||||||
# cache-to: type=local,mode=max,dest=/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-cache
|
||||||
|
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
||||||
Reference in New Issue
Block a user