Skip to content

Commit

Permalink
feat(docker): use gha cache
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Jun 17, 2022
1 parent b8b7052 commit 88d924c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build-docker-image-reg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ runs:
with:
images: ${{ inputs.registry }}/${{ inputs.image }}

- uses: int128/docker-build-cache-config-action@v1
id: cache
with:
image: ${{ inputs.registry }}/${{ inputs.image }}/cache

- uses: docker/setup-buildx-action@v2

- uses: docker/build-push-action@v3
Expand All @@ -68,7 +63,7 @@ runs:
target: ${{ inputs.target }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ steps.cache.outputs.cache-from }}
cache-from: type=gha,mode=max

- uses: docker/build-push-action@v3
with:
Expand All @@ -77,4 +72,5 @@ runs:
target: ${{ inputs.target }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-to: ${{ steps.cache.outputs.cache-to }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 88d924c

Please sign in to comment.