modified: .gitea/limbo_actions/buildkit-build-push/action.yaml
/ build-container-image (push) Successful in 17s
/ build-container-image (push) Successful in 17s
This commit is contained in:
@@ -32,10 +32,7 @@ inputs:
|
|||||||
description: "Build arguments (multiline KEY=VALUE)"
|
description: "Build arguments (multiline KEY=VALUE)"
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
push:
|
|
||||||
description: "push image (Defaults true)"
|
|
||||||
required: false
|
|
||||||
default: "true"
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -72,13 +69,13 @@ runs:
|
|||||||
|
|
||||||
echo "Using build args: $BUILD_ARG_FLAGS"
|
echo "Using build args: $BUILD_ARG_FLAGS"
|
||||||
|
|
||||||
# Build names, convert csv (tag1:latest,tag2:x,tag3) to name=tag1:latest,name=tag2:x,tag
|
OUTPUTS=""
|
||||||
OUTPUT_NAMES=""
|
|
||||||
while IFS= read -r tag; do
|
while IFS= read -r tag; do
|
||||||
[[ -z "$tag" ]] && continue
|
[[ -z "$tag" ]] && continue
|
||||||
OUTPUT_NAMES="${OUTPUT_NAMES:+$OUTPUT_NAMES,}name=$tag"
|
OUTPUTS="${OUTPUTS} --output type=image,name=$tag,push=true"
|
||||||
done <<< "${{ inputs.tags }}"
|
done <<< "${{ inputs.tags }}"
|
||||||
echo "output names: $OUTPUT_NAMES"
|
|
||||||
|
echo "outputs: $OUTPUTS"
|
||||||
|
|
||||||
echo "build and push image to ${{ inputs.registry_addr }}"
|
echo "build and push image to ${{ inputs.registry_addr }}"
|
||||||
|
|
||||||
@@ -90,5 +87,5 @@ runs:
|
|||||||
--local dockerfile=${{ inputs.dockerfile }} \
|
--local dockerfile=${{ inputs.dockerfile }} \
|
||||||
--opt filename=${{ inputs.filename }} \
|
--opt filename=${{ inputs.filename }} \
|
||||||
$BUILD_ARG_FLAGS \
|
$BUILD_ARG_FLAGS \
|
||||||
--output type=image,${OUTPUT_NAMES},push=${{ inputs.push }}
|
$OUTPUTS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user