build(docker): Leverage GitHub cache using actions/cache (#892)

This commit is contained in:
TheCatLady
2021-02-09 00:23:17 -05:00
committed by GitHub
parent ff0b5ed441
commit 4e03c1efcf

View File

@@ -36,6 +36,13 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2.1.4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
with:
@@ -60,6 +67,8 @@ jobs:
sctx/overseerr:${{ github.sha }}
ghcr.io/sct/overseerr:develop
ghcr.io/sct/overseerr:${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
discord:
name: Send Discord Notification
needs: build_and_push