From de240f32db13f106de9e81ffd8348b8a3a79ebc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Sat, 6 Jan 2024 00:40:31 +0100 Subject: [PATCH] try and improve the docker build action with some caching --- .github/actions/docker-build-action/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/docker-build-action/action.yml b/.github/actions/docker-build-action/action.yml index 34799b2..8753c7c 100644 --- a/.github/actions/docker-build-action/action.yml +++ b/.github/actions/docker-build-action/action.yml @@ -33,7 +33,7 @@ runs: - name: Build Docker image shell: bash - run: docker build -t ghcr.io/${{ github.repository_owner }}/${{ inputs.imageName }} -f ${{ inputs.dockerFile }} . + run: docker build --cache-from=ghcr.io/${{ github.repository_owner }}/${{ inputs.imageName }} -t ghcr.io/${{ github.repository_owner }}/${{ inputs.imageName }} -f ${{ inputs.dockerFile }} . - name: Push Docker image shell: bash