Skip to content

Commit cacd572

Browse files
committed
use github actions caching for docker build
1 parent 4917878 commit cacd572

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build-container.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
with:
3333
target: test
3434
push: false
35+
cache-from: type=gha
36+
cache-to: type=gha,mode=max
3537
- name: Run Perl tests
3638
run: docker run -i ${{ steps.docker-build-test.outputs.imageid }}
3739
- name: Docker meta
@@ -52,6 +54,8 @@ jobs:
5254
push: true
5355
tags: ${{ steps.meta.outputs.tags }}
5456
annotations: ${{ steps.meta.outputs.annotations }}
57+
cache-from: type=gha
58+
cache-to: type=gha,mode=max
5559
- name: Update deployed image
5660
if: ${{ contains( fromJSON(steps.meta.outputs.json).tags, format('{0}:latest', github.repository)) }}
5761
uses: benc-uk/workflow-dispatch@v1

0 commit comments

Comments
 (0)