测试 build_tags: image-test

This commit is contained in:
严浩
2024-10-08 22:34:48 +08:00
committed by GitHub
parent 92cf2ed635
commit cd586f86f8
2 changed files with 9 additions and 5 deletions

View File

@ -26,7 +26,8 @@ jobs:
build_platforms: linux/amd64 build_platforms: linux/amd64
build_push: false build_push: false
build_load: true build_load: true
# - name: Check Docker image build_tags: image-test
# run: | - name: Check Docker image
# set -x run: |
# docker run --rm ghcr.io/yanhao98/composite-actions:latest pnpm --version set -x
docker images

View File

@ -31,6 +31,9 @@ inputs:
description: "是否加载 Docker 镜像" description: "是否加载 Docker 镜像"
default: "false" default: "false"
required: false required: false
build_tags:
description: "Docker 镜像标签"
required: false
runs: runs:
using: "composite" using: "composite"
steps: steps:
@ -56,7 +59,7 @@ runs:
platforms: ${{ inputs.build_platforms }} platforms: ${{ inputs.build_platforms }}
push: ${{ inputs.build_push }} push: ${{ inputs.build_push }}
load: ${{ inputs.build_load }} load: ${{ inputs.build_load }}
# tags: ${{ steps.meta.outputs.tags }} tags: ${{ inputs.build_tags }}
# labels: ${{ steps.meta.outputs.labels }} # labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max