File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,18 @@ jobs:
8282 echo "registry=${{ env.REGISTRY }}"
8383 } >> "$GITHUB_OUTPUT"
8484
85+ - name : Get current date
86+ id : date
87+ run : echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
88+
8589 # Check if the image was already built for this SHA using cache
8690 - name : Check if already built
8791 id : cache-check
8892 if : ${{ github.ref_name != github.event.repository.default_branch }}
8993 uses : actions/cache@v5
9094 with :
9195 path : .build-marker-${{ matrix.image }}
92- key : image-built-${{ matrix.image }}-${{ github.sha }}
96+ key : image-built-${{ matrix.image }}-${{ github.sha }}-${{ steps.date.outputs.date }}
9397 lookup-only : true
9498
9599 - name : Set up Docker Buildx
@@ -138,4 +142,4 @@ jobs:
138142 uses : actions/cache/save@v5
139143 with :
140144 path : .build-marker-${{ matrix.image }}
141- key : image-built-${{ matrix.image }}-${{ github.sha }}
145+ key : image-built-${{ matrix.image }}-${{ github.sha }}-${{ steps.date.outputs.date }}
You can’t perform that action at this time.
0 commit comments