From cd586f86f813ea329bebf0bb9cfe79cc39db2387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20build=5Ftags:=20image-test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 9 +++++---- docker-build-push/action.yml | 5 ++++- 2 files changed, 9 insertions(+), 5 deletions(-) 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