From 782169357a20bc19f8844282060de3833119b57c Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 22 Jul 2024 19:21:44 +0200 Subject: [PATCH] Implement caching in deploy-docker-dev.yml --- .github/workflows/deploy-docker-dev.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker-dev.yml b/.github/workflows/deploy-docker-dev.yml index 170c03b..22971d0 100644 --- a/.github/workflows/deploy-docker-dev.yml +++ b/.github/workflows/deploy-docker-dev.yml @@ -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 \ No newline at end of file + tags: germannewsmaker/licenseapi:development + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache,new \ No newline at end of file