File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,15 @@ for version in "${versions[@]}"; do
116116 sharedTags+=( " ${baseAliases[@]} " )
117117 fi
118118
119+ constraints=
120+ if [ " $variant " != " $v " ]; then
121+ constraints=" $variant "
122+ if [[ " $variant " == nanoserver-* ]]; then
123+ # nanoserver variants "COPY --from=...:...-windowsservercore-... ..."
124+ constraints+=" , windowsservercore-${variant# nanoserver-} "
125+ fi
126+ fi
127+
119128 echo
120129 echo " Tags: $( join ' , ' " ${variantAliases[@]} " ) "
121130 if [ " ${# sharedTags[@]} " -gt 0 ]; then
@@ -126,6 +135,6 @@ for version in "${versions[@]}"; do
126135 GitCommit: $commit
127136 Directory: $dir
128137 EOE
129- [ " $variant " = " $v " ] || echo " Constraints: $variant "
138+ [ -z " $constraints " ] || echo " Constraints: $constraints "
130139 done
131140done
You can’t perform that action at this time.
0 commit comments