From 3b1301eb7f3d86e78c3ba835eddb817748f53592 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Fri, 15 Sep 2023 10:44:01 +0200 Subject: [PATCH] Fix container build when cache is disabled (#26932) --- .github/workflows/build-container-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-container-image.yml b/.github/workflows/build-container-image.yml index 0008e902ca..aa9e74e7e9 100644 --- a/.github/workflows/build-container-image.yml +++ b/.github/workflows/build-container-image.yml @@ -95,5 +95,5 @@ jobs: push: ${{ inputs.push_to_images != '' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: ${{ inputs.cache && 'type=gha' }} - cache-to: ${{ inputs.cache && 'type=gha,mode=max' }} + cache-from: ${{ inputs.cache && 'type=gha' || '' }} + cache-to: ${{ inputs.cache && 'type=gha,mode=max' || '' }}