Merge pull request #989 from flatcar/kai/fix-build-sysext

ci-automation/vms: Export official release variable
This commit is contained in:
Kai Lüke 2023-07-17 18:11:10 +02:00 committed by GitHub
commit 12de6d9b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@
# SDK container env passing helpers
sdk_container/.env
sdk_container/.sdkenv
ci-cleanup.sh
# build cache / artefacts directories
__build__/

View File

@ -102,6 +102,14 @@ function _vm_build_impl() {
# Keep compatibility with SDK scripts where "equinix_metal" remains unknown.
formats=$(echo "$formats" | tr ' ' '\n' | sed 's/equinix_metal/packet/g')
source sdk_lib/sdk_container_common.sh
if is_official "${vernum}"; then
export COREOS_OFFICIAL=1
else
export COREOS_OFFICIAL=0
fi
local images_in="images-in/"
local file
rm -rf "${images_in}"