diff --git a/task/apply-tags/0.1/apply-tags.yaml b/task/apply-tags/0.1/apply-tags.yaml index 7e8a5a2d01..85a6954ccb 100644 --- a/task/apply-tags/0.1/apply-tags.yaml +++ b/task/apply-tags/0.1/apply-tags.yaml @@ -61,7 +61,7 @@ spec: script: | #!/bin/bash - ADDITIONAL_TAGS_FROM_IMAGE_LABEL=$(skopeo inspect --format '{{ index .Labels "konflux.additional-tags" }}' docker://$IMAGE) + ADDITIONAL_TAGS_FROM_IMAGE_LABEL=$(skopeo inspect --no-tags --format '{{ index .Labels "konflux.additional-tags" }}' docker://$IMAGE) if [ -n "${ADDITIONAL_TAGS_FROM_IMAGE_LABEL}" ]; then IFS=', ' read -r -a tags_array <<< "$ADDITIONAL_TAGS_FROM_IMAGE_LABEL" diff --git a/task/init/0.2/init.yaml b/task/init/0.2/init.yaml index cb7a3424ec..92c22fd28b 100644 --- a/task/init/0.2/init.yaml +++ b/task/init/0.2/init.yaml @@ -41,7 +41,7 @@ spec: echo "Determine if Image Already Exists" # Build the image when rebuild is set to true or image does not exist # The image check comes last to avoid unnecessary, slow API calls - if [ "$REBUILD" == "true" ] || [ "$SKIP_CHECKS" == "false" ] || ! skopeo inspect --raw docker://$IMAGE_URL &>/dev/null; then + if [ "$REBUILD" == "true" ] || [ "$SKIP_CHECKS" == "false" ] || ! skopeo inspect --no-tags --raw docker://$IMAGE_URL &>/dev/null; then echo -n "true" > $(results.build.path) else echo -n "false" > $(results.build.path)