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)"
|
||||
required: false
|
||||
default: ""
|
||||
push:
|
||||
description: "push image (Defaults true)"
|
||||
required: false
|
||||
default: "true"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -72,13 +69,13 @@ runs:
|
||||
|
||||
echo "Using build args: $BUILD_ARG_FLAGS"
|
||||
|
||||
# Build names, convert csv (tag1:latest,tag2:x,tag3) to name=tag1:latest,name=tag2:x,tag
|
||||
OUTPUT_NAMES=""
|
||||
OUTPUTS=""
|
||||
while IFS= read -r tag; do
|
||||
[[ -z "$tag" ]] && continue
|
||||
OUTPUT_NAMES="${OUTPUT_NAMES:+$OUTPUT_NAMES,}name=$tag"
|
||||
OUTPUTS="${OUTPUTS} --output type=image,name=$tag,push=true"
|
||||
done <<< "${{ inputs.tags }}"
|
||||
echo "output names: $OUTPUT_NAMES"
|
||||
|
||||
echo "outputs: $OUTPUTS"
|
||||
|
||||
echo "build and push image to ${{ inputs.registry_addr }}"
|
||||
|
||||
@@ -90,5 +87,5 @@ runs:
|
||||
--local dockerfile=${{ inputs.dockerfile }} \
|
||||
--opt filename=${{ inputs.filename }} \
|
||||
$BUILD_ARG_FLAGS \
|
||||
--output type=image,${OUTPUT_NAMES},push=${{ inputs.push }}
|
||||
$OUTPUTS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user