Skip to content

Commit

Permalink
Build caching for Docker (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx authored Mar 26, 2024
1 parent cda70df commit d6215ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ runs:
context: ${{ env.DOCKER_DIR }}
push: false
load: true
tags: ${{ env.IMAGE_LONG_NAME }}
cache-from: 'type=registry,ref=${{ env.IMAGE_NAME }}'
tags: '${{ env.IMAGE_LONG_NAME }},${{ env.IMAGE_NAME }}:latest-cache'
cache-from: 'type=registry,ref=${{ env.IMAGE_NAME }}:latest-cache'
cache-to: 'type=inline'

- name: Setup Trivy ignore file
Expand Down Expand Up @@ -151,4 +151,4 @@ runs:

- name: Push image
shell: bash
run: docker push ${{ env.IMAGE_LONG_NAME }}
run: docker push '${{ env.IMAGE_NAME }}' --all-tags

0 comments on commit d6215ae

Please sign in to comment.