Implement caching in deploy-docker-dev.yml

This commit is contained in:
Mathias Wagner
2024-07-22 19:21:44 +02:00
parent 8a0b114596
commit 782169357a

View File

@ -19,6 +19,14 @@ jobs:
- name: Set up Docker Build
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-
- name: Login to DockerHub
uses: docker/login-action@v2
with:
@ -30,4 +38,6 @@ jobs:
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: germannewsmaker/licenseapi:development
tags: germannewsmaker/licenseapi:development
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,new