1
Fork 0

Fix cache flag in dependencies workflow. (#1050)

This commit is contained in:
Googol Lee 2024-09-13 13:41:39 +02:00 committed by GitHub
parent 49ae7d17df
commit 4655684b49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ jobs:
images: ${{ env.DOCKER_IMAGE }} images: ${{ env.DOCKER_IMAGE }}
# Docker tags based on the following events/attributes # Docker tags based on the following events/attributes
tags: | tags: |
type=raw,value=latest
type=sha type=sha
- name: Build and push - name: Build and push
@ -62,7 +63,7 @@ jobs:
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: ${{ env.IS_CACHING == 'true' && 'type=gha' }} cache-from: ${{ env.IS_CACHING == 'true' && 'type=gha' }}
cache-to: ${{ env.IS_CACHING == 'true' && 'type=gha,mode=max' }} cache-to: ${{ env.IS_CACHING == 'true' && 'type=gha,mode=max' }}
no-cache: ${{ ! env.IS_CACHING }} no-cache: ${{ env.IS_CACHING != 'true' }}
sbom: true sbom: true
provenance: mode=max provenance: mode=max
annotations: ${{ steps.docker_meta.outputs.annotations }} annotations: ${{ steps.docker_meta.outputs.annotations }}