Skip to content

Commit 8928481

Browse files
committed
Remove Docker caching not working with docker driver it seems
1 parent 8134b66 commit 8928481

1 file changed

Lines changed: 1 addition & 26 deletions

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ jobs:
5757
type=ref,event=tag,priority=1000,prefix=nitro-
5858
type=ref,enable=true,priority=600,prefix=nitro-,suffix=,event=branch
5959
60-
- name: Cache Docker layers
61-
uses: actions/cache@v4
62-
with:
63-
path: /tmp/.buildx-cache
64-
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
65-
restore-keys: ${{ runner.os }}-buildx-
66-
6760
- name: Build and push Docker image
6861
uses: docker/build-push-action@v6
6962
with:
@@ -72,22 +65,4 @@ jobs:
7265
file: ./Dockerfile
7366
push: true
7467
tags: ${{ steps.meta.outputs.tags }}
75-
labels: ${{ steps.meta.outputs.labels }}
76-
cache-from: type=local,src=/tmp/.buildx-cache
77-
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
78-
79-
- name: Move cache
80-
# Temp fix
81-
# https://github.com/docker/build-push-action/issues/252
82-
# https://github.com/moby/buildkit/issues/1896
83-
run: |
84-
rm -rf /tmp/.buildx-cache
85-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
86-
87-
- name: Clear cache on failure
88-
if: failure()
89-
run: |
90-
keys=(${{ runner.os }}-buildx- ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }})
91-
for key in "${keys[@]}"; do
92-
curl -X DELETE -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/actions/caches/$key"
93-
done
68+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)