From 2837b52293f82944179dc42cf7d8f5c9955389dc Mon Sep 17 00:00:00 2001 From: hoatle Date: Thu, 31 Mar 2022 17:29:47 +0700 Subject: [PATCH] @ #1 | meta-image-name input will be true after removing the deprecated meta-images input --- .../docker-build-push-sign-develop/action.yml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/actions/docker-build-push-sign-develop/action.yml b/actions/docker-build-push-sign-develop/action.yml index 176ced8..00d8bd5 100644 --- a/actions/docker-build-push-sign-develop/action.yml +++ b/actions/docker-build-push-sign-develop/action.yml @@ -103,21 +103,25 @@ runs: echo "${joined%,}" } - if [ -z "$IMAGE_NAME" ]; then - echo "inputs.meta-image-name is required"; - exit 1; - fi + if [ -z "$DEPRECATED_META_IMAGES" ]; then + if [ -z "$IMAGE_NAME" ]; then + echo "inputs.meta-image-name is required"; + exit 1; + fi - if [ -z "$REGISTRIES" ]; then - META_IMAGES=$(build_meta_images ${IMAGE_NAME}) - else - META_IMAGES=$(build_meta_images $REGISTRIES ${IMAGE_NAME}) + if [ -z "$REGISTRIES" ]; then + META_IMAGES=$(build_meta_images ${IMAGE_NAME}) + else + META_IMAGES=$(build_meta_images $REGISTRIES ${IMAGE_NAME}) + fi + echo "::set-output name=meta_images::${META_IMAGES}" fi - echo "::set-output name=meta_images::${META_IMAGES}" + shell: bash env: REGISTRIES: "${{ inputs.meta-registries }}" IMAGE_NAME: "${{ inputs.meta-image-name }}" + DEPRECATED_META_IMAGES: ${{ inputs.meta-images }} - name: Docker meta id: docker-meta