mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 21:46:58 +02:00
ci-automation: set images as official based on version
The image needs to be set into official mode through a helper script (see jenkins/images.sh) and the COREOS_OFFICIAL variable needs to be set for prod_image_util.sh/build_image_util.sh/grub_install.sh.
This commit is contained in:
parent
0c8d96edaa
commit
c3ae1ce3b0
@ -55,10 +55,22 @@ function image_build() {
|
|||||||
local image="flatcar-images-${arch}"
|
local image="flatcar-images-${arch}"
|
||||||
local image_container="${image}-${docker_vernum}"
|
local image_container="${image}-${docker_vernum}"
|
||||||
|
|
||||||
|
local official_arg=""
|
||||||
|
if is_official "${vernum}"; then
|
||||||
|
export COREOS_OFFICIAL=1
|
||||||
|
official_arg="--official"
|
||||||
|
else
|
||||||
|
export COREOS_OFFICIAL=0
|
||||||
|
official_arg="--noofficial"
|
||||||
|
fi
|
||||||
|
|
||||||
# build image and store it in the container
|
# build image and store it in the container
|
||||||
./run_sdk_container -x ./ci-cleanup.sh -n "${image_container}" -C "${packages_image}" \
|
./run_sdk_container -x ./ci-cleanup.sh -n "${image_container}" -C "${packages_image}" \
|
||||||
-v "${vernum}" \
|
-v "${vernum}" \
|
||||||
mkdir -p "${CONTAINER_IMAGE_ROOT}"
|
mkdir -p "${CONTAINER_IMAGE_ROOT}"
|
||||||
|
./run_sdk_container -n "${image_container}" -C "${packages_image}" \
|
||||||
|
-v "${vernum}" \
|
||||||
|
./set_official --board="${arch}-usr" "${official_arg}"
|
||||||
./run_sdk_container -n "${image_container}" -C "${packages_image}" \
|
./run_sdk_container -n "${image_container}" -C "${packages_image}" \
|
||||||
-v "${vernum}" \
|
-v "${vernum}" \
|
||||||
./build_image --board="${arch}-usr" --group="${channel}" \
|
./build_image --board="${arch}-usr" --group="${channel}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user