Update docker-build.yml

This commit is contained in:
Jannik
2024-08-03 21:40:08 +02:00
committed by GitHub
parent cabbb32507
commit 2c633b2ece
+19 -1
View File
@@ -15,6 +15,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
@@ -28,4 +36,14 @@ jobs:
file: ./Dockerfile
push: true
tags: driaug/plunk:latest
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64
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/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