Skip to content

Commit ac08784

Browse files
authored
Update action.yml
1 parent f16dbf7 commit ac08784

File tree

1 file changed

+2
-2
lines changed
  • .github/actions/core-cicd/deployment/deploy-docker

1 file changed

+2
-2
lines changed

.github/actions/core-cicd/deployment/deploy-docker/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,6 @@ runs:
187187
platforms: ${{ inputs.docker_platforms }}
188188
pull: true
189189
push: ${{ inputs.do_deploy }}
190-
cache-from: type=gha,scope=${{ github.workflow }}
191-
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
190+
cache-from: type=registry,ref=${{ inputs.image_name }}:buildcache
191+
cache-to: ${{ inputs.do_deploy == 'true' && format('type=registry,ref={0}:buildcache,mode=max', inputs.image_name) || '' }}
192192
build-args: ${{ inputs.build_args }}

0 commit comments

Comments
 (0)