File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 tag_release :
5252 needs : [quality_checks, get_config_values]
5353 uses : ./.github/workflows/tag-release-devcontainer.yml
54+ permissions :
55+ contents : read
56+ packages : read
57+ attestations : read
5458 with :
5559 dry_run : true
5660 runtime_docker_image : " ${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
Original file line number Diff line number Diff line change @@ -55,19 +55,23 @@ jobs:
5555 run : |
5656 set -euo pipefail
5757
58- if [[ "$RUNTIME_IMAGE_INPUT" == *"/"* ]]; then
58+ FIRST_PATH_SEGMENT="${RUNTIME_IMAGE_INPUT%%/*}"
59+ if [[ "$RUNTIME_IMAGE_INPUT" != *"/"* ]]; then
60+ IMAGE_REF="${REGISTRY}/${NAMESPACE}/${RUNTIME_IMAGE_INPUT}"
61+ elif [[ "$FIRST_PATH_SEGMENT" == *.* || "$FIRST_PATH_SEGMENT" == *:* || "$FIRST_PATH_SEGMENT" == "localhost" ]]; then
5962 IMAGE_REF="$RUNTIME_IMAGE_INPUT"
6063 else
61- IMAGE_REF="${REGISTRY}/${NAMESPACE}/${ RUNTIME_IMAGE_INPUT}"
64+ IMAGE_REF="${REGISTRY}/${RUNTIME_IMAGE_INPUT}"
6265 fi
6366
67+ echo "Resolved runtime image input '${RUNTIME_IMAGE_INPUT}' to '${IMAGE_REF}'"
68+
6469 if [[ "$IMAGE_REF" == *@sha256:* ]]; then
6570 DIGEST="${IMAGE_REF#*@}"
6671 IMAGE_BASE="${IMAGE_REF%@*}"
6772 else
6873 echo "Resolving digest for image: $IMAGE_REF"
6974 DIGEST="$(docker buildx imagetools inspect "$IMAGE_REF" | awk '/^Digest:/ {print $2; exit}')"
70- echo "Ran the command"
7175 IMAGE_BASE="${IMAGE_REF%:*}"
7276 fi
7377
You can’t perform that action at this time.
0 commit comments