mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
ci-automation/vm: build PXE if Equinix Metal is built
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
721fc9f649
commit
19ca42b3dd
@ -59,6 +59,16 @@ function vm_build() {
|
||||
|
||||
echo "docker container rm -f '${vms_container}'" >> ci-cleanup.sh
|
||||
|
||||
# automatically add PXE to formats if we build for Equinix Metal (packet).
|
||||
local has_packet=0
|
||||
local has_pxe=0
|
||||
for format; do
|
||||
[[ "${format}" = 'packet' ]] || [[ "${format}" = 'equinix_metal' ]] && has_packet=1
|
||||
[[ "${format}" = 'pxe' ]] && has_pxe=1
|
||||
done
|
||||
|
||||
[[ ${has_packet} -eq 1 ]] && [[ ${has_pxe} -eq 0 ]] && set -- 'pxe' "${@}"
|
||||
|
||||
for format; do
|
||||
# keep compatibility with SDK scripts where "equinix_metal"
|
||||
# remains unknown.
|
||||
|
Loading…
x
Reference in New Issue
Block a user