Skip to content

Commit

Permalink
@ #1 | meta-image-name input will be true after removing the deprecat…
Browse files Browse the repository at this point in the history
…ed meta-images input
  • Loading branch information
hoatle committed Mar 31, 2022
1 parent adf6a03 commit 2837b52
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions actions/docker-build-push-sign-develop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2837b52

Please sign in to comment.