Skip to content

Commit 0b8fd6d

Browse files
authored
Merge pull request #265 from yodapotatofly/docker-build
docker: Not using the cache in github build action
2 parents 0aa5f5d + 6386671 commit 0b8fd6d

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ jobs:
2626
name: Set up Docker Buildx
2727
uses: docker/setup-buildx-action@v1
2828

29-
-
30-
name: Cache Docker layers
31-
uses: actions/cache@v2
32-
with:
33-
path: /tmp/.buildx-cache
34-
key: ${{ runner.os }}-buildx-${{ github.sha }}
35-
restore-keys: |
36-
${{ runner.os }}-buildx-
37-
3829
-
3930
name: Log in to GitHub Container Registry
4031
uses: docker/login-action@v1
@@ -73,15 +64,3 @@ jobs:
7364
tags: |
7465
ghcr.io/${{ env.OWNER }}/scirius:${{ github.sha }}
7566
ghcr.io/${{ env.OWNER }}/scirius:${{ env.VERSION }}
76-
cache-from: type=local,src=/tmp/.buildx-cache
77-
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
78-
79-
-
80-
# Temp fix
81-
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache
82-
# https://github.com/docker/build-push-action/issues/252
83-
# https://github.com/moby/buildkit/issues/1896
84-
name: Move cache
85-
run: |
86-
rm -rf /tmp/.buildx-cache
87-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 commit comments

Comments
 (0)