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
116
116
sharedTags+=( " ${baseAliases[@]} " )
117
117
fi
118
118
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
+
119
128
echo
120
129
echo " Tags: $( join ' , ' " ${variantAliases[@]} " ) "
121
130
if [ " ${# sharedTags[@]} " -gt 0 ]; then
@@ -126,6 +135,6 @@ for version in "${versions[@]}"; do
126
135
GitCommit: $commit
127
136
Directory: $dir
128
137
EOE
129
- [ " $variant " = " $v " ] || echo " Constraints: $variant "
138
+ [ -z " $constraints " ] || echo " Constraints: $constraints "
130
139
done
131
140
done
You can’t perform that action at this time.
0 commit comments