Skip to content

Commit

Permalink
use github actions caching for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed May 7, 2024
1 parent 4917878 commit cacd572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
with:
target: test
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Perl tests
run: docker run -i ${{ steps.docker-build-test.outputs.imageid }}
- name: Docker meta
Expand All @@ -52,6 +54,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Update deployed image
if: ${{ contains( fromJSON(steps.meta.outputs.json).tags, format('{0}:latest', github.repository)) }}
uses: benc-uk/workflow-dispatch@v1
Expand Down

0 comments on commit cacd572

Please sign in to comment.