Skip to content

Commit 0f21833

Browse files
committed
Update docker cache
Signed-off-by: Alberto Tudela <[email protected]>
1 parent 0f865b2 commit 0f21833

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/docker_image.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
id: scitos2-builder
3434

3535
- name: Cache Docker layers
36-
uses: actions/cache@v4.0.2
36+
uses: actions/cache@v4
3737
with:
3838
path: /tmp/.buildx-cache
3939
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -48,12 +48,20 @@ jobs:
4848
password: ${{ secrets.DOCKERHUB_TOKEN }}
4949

5050
- name: Build against scitos2-builder
51-
uses: docker/build-push-action@v5.3.0
51+
uses: docker/build-push-action@v6
5252
with:
5353
builder: ${{ steps.scitos2-builder.outputs.name }}
5454
context: .
5555
push: ${{ github.event_name != 'pull_request' }}
5656
tags: ${{ steps.meta.outputs.tags }}
5757
labels: ${{ steps.meta.outputs.labels }}
5858
cache-from: type=local,src=/tmp/.buildx-cache
59-
cache-to: type=local,dest=/tmp/.buildx-cache-new
59+
cache-to: type=local,dest=/tmp/.buildx-cache-new
60+
61+
# Temp fix
62+
# https://github.com/docker/build-push-action/issues/252
63+
# https://github.com/moby/buildkit/issues/1896
64+
- name: Move cache
65+
run: |
66+
rm -rf /tmp/.buildx-cache
67+
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 commit comments

Comments
 (0)