File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 114114 if [ ! -z "$DEPENDENCIES " ]; then
115115 echo " build-contexts: |"
116116 for NAME_FULL in $DEPENDENCIES ; do
117- # Extract image name without tag
118- local IMAGE_NAME=$(echo "$NAME_FULL " | cut -d':' -f1 )
119- echo " $IMAGE_NAME =docker-image://ghcr.io/$NAME_FULL "
117+ # Always map dependencies without the ':root' suffix in the build-context key
118+ local DEP_KEY="$NAME_FULL "
119+ if [[ "$DEP_KEY " == *:root ]]; then
120+ DEP_KEY="${DEP_KEY%: root} "
121+ fi
122+ echo " $DEP_KEY =docker-image://ghcr.io/$NAME_FULL "
120123 done
121124 fi
122125
Original file line number Diff line number Diff line change 1- FROM --platform=$TARGETPLATFORM yolean/homedir:root
1+ FROM --platform=$TARGETPLATFORM yolean/homedir
22
33# Appends the same nonroot directives as https://github.com/Yolean/kubernetes-kafka/tree/master/nonroot
44# i.e. https://github.com/solsson/dockerfiles/tree/native/kafka-nonroot
You can’t perform that action at this time.
0 commit comments