Remove caching from action

This commit is contained in:
2022-10-26 22:27:29 +02:00
parent e62821754d
commit 9be90032e0

View File

@@ -23,14 +23,6 @@ jobs:
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- id: repository_name - id: repository_name
uses: ASzc/change-string-case-action@v3 uses: ASzc/change-string-case-action@v3
with: with:
@@ -56,18 +48,6 @@ jobs:
tags: ghcr.io/${{ env.IMAGE }}:latest tags: ghcr.io/${{ env.IMAGE }}:latest
context: . context: .
file: ./docker/build.dockerfile file: ./docker/build.dockerfile
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
# This ugly bit is necessary if you don't want your cache to grow forever
# until it hits GitHub's limit of 5GB.
# 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: Invoke deployment hook name: Invoke deployment hook