Skip to content

Commit

Permalink
ci: Disable cache-to on dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
bjw-s committed Dec 22, 2024
1 parent 01cddcb commit c1c5536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/workflow_call-build_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
build-args: ${{ inputs.build-args }}
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ inputs.app }}
cache-to: ${{ inputs.dry-run && '' || "type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ inputs.app }}" }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ inputs.app }},mode=max

0 comments on commit c1c5536

Please sign in to comment.