diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00ccedf..0ae3021 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,8 @@ jobs: build_platforms: linux/amd64 build_push: false build_load: true - # - name: Check Docker image - # run: | - # set -x - # docker run --rm ghcr.io/yanhao98/composite-actions:latest pnpm --version \ No newline at end of file + build_tags: image-test + - name: Check Docker image + run: | + set -x + docker images \ No newline at end of file diff --git a/docker-build-push/action.yml b/docker-build-push/action.yml index f4d2bbb..1b101ed 100644 --- a/docker-build-push/action.yml +++ b/docker-build-push/action.yml @@ -31,6 +31,9 @@ inputs: description: "是否加载 Docker 镜像" default: "false" required: false + build_tags: + description: "Docker 镜像标签" + required: false runs: using: "composite" steps: @@ -56,7 +59,7 @@ runs: platforms: ${{ inputs.build_platforms }} push: ${{ inputs.build_push }} load: ${{ inputs.build_load }} - # tags: ${{ steps.meta.outputs.tags }} + tags: ${{ inputs.build_tags }} # labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max