Skip to content

Commit

Permalink
ci: disable docker caching
Browse files Browse the repository at this point in the history
Caching task takes longer time than reducing time by caching
  • Loading branch information
turtton committed Jun 11, 2023
1 parent 98ae2d7 commit c27eebc
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,9 @@ jobs:
7z x temp.zip
cp -r volglass-docs-main/posts .
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build
uses: docker/build-push-action@v4
with:
file: ./Dockerfile
push: false
context: .
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
# https://docs.docker.com/build/ci/github-actions/cache/#local-cache
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
context: .

0 comments on commit c27eebc

Please sign in to comment.