Implement github actions cache, for docker build (#2727)

This commit is contained in:
boc-the-git 2023-11-19 03:02:43 +11:00 committed by GitHub
parent 2589849682
commit 74ea7d5e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,3 +46,6 @@ jobs:
tags: ghcr.io/${{ github.repository }}:${{ inputs.tag }} tags: ghcr.io/${{ github.repository }}:${{ inputs.tag }}
build-args: | build-args: |
COMMIT=${{ github.sha }} COMMIT=${{ github.sha }}
# https://docs.docker.com/build/ci/github-actions/cache/#github-cache
cache-from: type=gha
cache-to: type=gha,mode=max