Skip to content

Commit

Permalink
ci-automation/vms: Export official release variable
Browse files Browse the repository at this point in the history
The official release variable is used to decide whether a build ID gets
appended to the FLATCAR_VERSION (or VERSION in os-release) or not. It
was set for the image job but not for the vms job, causing the
build_sysext script to get the build ID appended to the FLATCAR_VERSION
which causes a mismatch with the one from the image job.
Set the official release variable in the vms job as well.
  • Loading branch information
pothos committed Jul 17, 2023
1 parent 593b62d commit d2a2a5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci-automation/vms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function _vm_build_impl() {
shift
# $@ now contains image formats to build

source sdk_lib/sdk_container_common.sh
source ci-automation/ci_automation_common.sh
source ci-automation/gpg_setup.sh

Expand Down Expand Up @@ -102,6 +103,12 @@ 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')

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}"
Expand Down

0 comments on commit d2a2a5e

Please sign in to comment.