mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 23:00:48 +08:00
测试 docker-build-push@main 的 load: true
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
|||||||
login_password: ${{ secrets.DOCKERHUB_TOKEN }}
|
login_password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
build_push: false
|
build_push: false
|
||||||
build_file: ./docker-build-push/Dockerfile
|
build_file: ./docker-build-push/Dockerfile
|
||||||
|
build_load: true
|
||||||
# - name: Check Docker image
|
# - name: Check Docker image
|
||||||
# run: |
|
# run: |
|
||||||
# set -x
|
# set -x
|
||||||
|
@ -27,6 +27,10 @@ inputs:
|
|||||||
description: "是否推送 Docker 镜像"
|
description: "是否推送 Docker 镜像"
|
||||||
default: "true"
|
default: "true"
|
||||||
required: false
|
required: false
|
||||||
|
build_load:
|
||||||
|
description: "是否加载 Docker 镜像"
|
||||||
|
default: "false"
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@ -51,7 +55,10 @@ runs:
|
|||||||
context: ${{ inputs.build_context }}
|
context: ${{ inputs.build_context }}
|
||||||
platforms: ${{ inputs.build_platforms }}
|
platforms: ${{ inputs.build_platforms }}
|
||||||
push: ${{ inputs.build_push }}
|
push: ${{ inputs.build_push }}
|
||||||
|
load: ${{ inputs.build_load }}
|
||||||
# tags: ${{ steps.meta.outputs.tags }}
|
# tags: ${{ steps.meta.outputs.tags }}
|
||||||
# labels: ${{ steps.meta.outputs.labels }}
|
# labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=gha
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=gha,mode=max
|
||||||
|
# cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
|
# cache-to: type=local,dest=/tmp/.buildx-cache
|
Reference in New Issue
Block a user