Skip to content

Commit

Permalink
remove buildx caching
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 2, 2023
1 parent c37df7c commit 0fc7577
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Build Docker Images

on:
push
on: push

jobs:
build:
Expand All @@ -22,14 +21,6 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v3

- name: Cache layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -68,11 +59,3 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

- # Temporary 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

0 comments on commit 0fc7577

Please sign in to comment.