From ad680c96025158db047119102127e0c277d65d9a Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Fri, 9 Feb 2024 00:58:29 +0100 Subject: [PATCH] Try out caching in docke build actions See https://docs.docker.com/build/cache/backends/gha/ --- .github/workflows/dummyPreprocessing.yml | 4 +++- .github/workflows/preprocessing-nextclade.yaml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dummyPreprocessing.yml b/.github/workflows/dummyPreprocessing.yml index 143fca10ae..b48e22bb7d 100644 --- a/.github/workflows/dummyPreprocessing.yml +++ b/.github/workflows/dummyPreprocessing.yml @@ -45,4 +45,6 @@ jobs: with: context: ./preprocessing/dummy push: true - tags: ${{ steps.dockerMetadata.outputs.tags }} \ No newline at end of file + tags: ${{ steps.dockerMetadata.outputs.tags }} + cache-from: type=gha,scope=${{ github.ref }} + cache-to: type=gha,mode=max,scope=${{ github.ref }} diff --git a/.github/workflows/preprocessing-nextclade.yaml b/.github/workflows/preprocessing-nextclade.yaml index 8a9b10c479..f7979934c2 100644 --- a/.github/workflows/preprocessing-nextclade.yaml +++ b/.github/workflows/preprocessing-nextclade.yaml @@ -47,3 +47,5 @@ jobs: context: ./preprocessing/nextclade push: true tags: ${{ steps.dockerMetadata.outputs.tags }} + cache-from: type=gha,scope=${{ github.ref }} + cache-to: type=gha,mode=max,scope=${{ github.ref }}