Skip to content

Commit

Permalink
remove unnecessary caching of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-kaestner committed Feb 28, 2021
1 parent a63048c commit 2ac5ca1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,15 @@ jobs:
id: 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: Build the thesis
uses: docker/build-push-action@v2
with:
push: false
builder: ${{ steps.buildx.outputs.name }}
tags: release-${{ steps.environment.outputs.sha_short }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
outputs: .

# Temp 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
- name: Upload thesis.pdf to build artifacts
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit 2ac5ca1

Please sign in to comment.