Add cache for faster Docker builds from the GitHub Actions environment in ".github/workflows/docker.yml".

This commit is contained in:
Sergey Krashevich
2023-04-02 07:05:09 +03:00
parent 45b25d29b7
commit 59347a409e
+4 -1
View File
@@ -63,7 +63,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push Hardware
uses: docker/build-push-action@v3
with:
@@ -73,3 +74,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-hw.outputs.tags }}
labels: ${{ steps.meta-hw.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max