Skip to content

Commit

Permalink
fix: Use platform specific refs
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Oct 23, 2024
1 parent c220615 commit 342953e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/actions/docker-build-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ runs:
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: |
type=gha,scope=build-${{ env.PLATFORM_PAIR }}
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:${{ github.ref_name }}
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:docker-cache
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:main
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:cache-${{ github.ref_name }}-${{ env.PLATFORM_PAIR }}
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:cache-docker-cache-${{ env.PLATFORM_PAIR }}
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:cache-main-${{ env.PLATFORM_PAIR }}
cache-to: |
type=gha,mode=max,scope=build-${{ env.PLATFORM_PAIR }}
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:${{ github.ref_name }}
type=registry,ref=${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.image }}:cache-${{ github.ref_name }}-${{ env.PLATFORM_PAIR }}
build-args: |
CARGO_BUILD_JOBS=4
Expand Down

0 comments on commit 342953e

Please sign in to comment.