mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 23:00:48 +08:00
测试 docker-build-push 的 imageid
This commit is contained in:
@ -37,6 +37,10 @@ inputs:
|
||||
metadata_tags:
|
||||
description: "docker/metadata-action 的 tags 参数"
|
||||
required: false
|
||||
outputs:
|
||||
imageid:
|
||||
description: "Docker 镜像 ID"
|
||||
value: ${{ steps.build.outputs.imageid }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@ -61,7 +65,8 @@ runs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
id: build
|
||||
uses: docker/build-push-action@v6 # https://github.com/docker/build-push-action
|
||||
with:
|
||||
file: ${{ inputs.build_file }}
|
||||
context: ${{ inputs.build_context }}
|
||||
@ -69,7 +74,7 @@ runs:
|
||||
push: ${{ inputs.build_push }}
|
||||
load: ${{ inputs.build_load }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
# labels: ${{ steps.meta.outputs.labels }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
# cache-from: type=local,src=/tmp/.buildx-cache
|
||||
|
Reference in New Issue
Block a user