diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e6673a..3885de2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: login_password: ${{ secrets.DOCKERHUB_TOKEN }} build_push: false build_file: ./docker-build-push/Dockerfile + build_load: true # - name: Check Docker image # run: | # set -x diff --git a/docker-build-push/action.yml b/docker-build-push/action.yml index e2a450a..f4d2bbb 100644 --- a/docker-build-push/action.yml +++ b/docker-build-push/action.yml @@ -27,6 +27,10 @@ inputs: description: "是否推送 Docker 镜像" default: "true" required: false + build_load: + description: "是否加载 Docker 镜像" + default: "false" + required: false runs: using: "composite" steps: @@ -51,7 +55,10 @@ runs: context: ${{ inputs.build_context }} platforms: ${{ inputs.build_platforms }} push: ${{ inputs.build_push }} + load: ${{ inputs.build_load }} # tags: ${{ steps.meta.outputs.tags }} # labels: ${{ steps.meta.outputs.labels }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache \ No newline at end of file + cache-from: type=gha + cache-to: type=gha,mode=max + # cache-from: type=local,src=/tmp/.buildx-cache + # cache-to: type=local,dest=/tmp/.buildx-cache \ No newline at end of file