Skip to content

Commit

Permalink
Merge pull request #265 from yodapotatofly/docker-build
Browse files Browse the repository at this point in the history
docker: Not using the cache in github build action
  • Loading branch information
pevma committed Mar 20, 2022
2 parents 0aa5f5d + 6386671 commit 0b8fd6d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/docker-build.yml
Expand Up @@ -26,15 +26,6 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

-
name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Log in to GitHub Container Registry
uses: docker/login-action@v1
Expand Down Expand Up @@ -73,15 +64,3 @@ jobs:
tags: |
ghcr.io/${{ env.OWNER }}/scirius:${{ github.sha }}
ghcr.io/${{ env.OWNER }}/scirius:${{ env.VERSION }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

-
# Temp fix
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache
# 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 0b8fd6d

Please sign in to comment.