Skip to content

Commit

Permalink
Add missing Constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed May 17, 2021
1 parent dc35ba5 commit 7dadfcc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ for version; do
esac
eval "variantArches=( $variantArches )"

constraints=
if [ "$variant" != "$v" ]; then
constraints="$variant"
if [[ "$variant" == nanoserver-* ]]; then
# nanoserver variants "COPY --from=...:...-windowsservercore-... ..."
constraints+=", windowsservercore-${variant#nanoserver-}"
fi
fi

echo
echo "Tags: $(join ', ' "${variantAliases[@]}")"
if [ "${#sharedTags[@]}" -gt 0 ]; then
Expand All @@ -130,6 +139,6 @@ for version; do
GitCommit: $commit
Directory: $dir
EOE
[ -z "$v" ] || echo "Constraints: $variant"
[ -z "$constraints" ] || echo "Constraints: $constraints"
done
done

0 comments on commit 7dadfcc

Please sign in to comment.