feat(ci): use docker registry cache (#8544)

This commit is contained in:
Harshal Sheth 2023-08-02 15:17:13 -07:00 committed by GitHub
parent 637a6aef18
commit e157992b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,8 @@ runs:
tags: ${{ steps.docker_meta.outputs.tags }}
load: true
push: false
cache-from: type=registry,ref=${{ steps.docker_meta.outputs.tags }}
cache-to: type=inline
- name: Upload image locally for testing (if not publishing)
uses: ishworkh/docker-image-artifact-upload@v1
if: ${{ inputs.publish != 'true' }}
@ -93,5 +95,7 @@ runs:
build-args: ${{ inputs.build-args }}
tags: ${{ steps.docker_meta.outputs.tags }}
push: true
cache-from: type=registry,ref=${{ steps.docker_meta.outputs.tags }}
cache-to: type=inline
# TODO add code for vuln scanning?