mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
ci-automation: Apply suggestions from PR review
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
0ecd0be77a
commit
a6ddcda88e
@ -142,13 +142,13 @@ get_board_binhost() {
|
||||
board="$1"
|
||||
shift
|
||||
|
||||
local no_toolchain=0
|
||||
local pkgs_include_toolchain=0
|
||||
if [[ $# -eq 0 ]]; then
|
||||
if [[ "${FLATCAR_BUILD_ID}" =~ ^nightly-.*$ ]] ; then
|
||||
# containerised nightly build; this uses [VERSION]-[BUILD_ID] for binpkg url
|
||||
# and toolchain packages are at the same location as OS image ones
|
||||
set -- "${FLATCAR_VERSION_ID}-${FLATCAR_BUILD_ID}"
|
||||
no_toolchain=1
|
||||
pkgs_include_toolchain=1
|
||||
else
|
||||
set -- "${FLATCAR_VERSION_ID}"
|
||||
fi
|
||||
@ -158,7 +158,7 @@ get_board_binhost() {
|
||||
if [[ $toolchain_only -eq 0 ]]; then
|
||||
echo "${FLATCAR_DEV_BUILDS}/boards/${board}/${ver}/pkgs/"
|
||||
fi
|
||||
if [[ $no_toolchain -eq 0 ]]; then
|
||||
if [[ $pkgs_include_toolchain -eq 0 ]]; then
|
||||
echo "${FLATCAR_DEV_BUILDS}/boards/${board}/${ver}/toolchain/"
|
||||
fi
|
||||
done
|
||||
|
@ -89,7 +89,7 @@ function garbage_collect() {
|
||||
else
|
||||
echo "## ${version} is an OS image version. ##"
|
||||
rmpat="${BUILDCACHE_PATH_PREFIX}/containers/${os_docker_vernum}/flatcar-packages-*"
|
||||
rmpat="${BUILDCACHE_PATH_PREFIX}/binpkgs/boards/*/${os_docker_vernum}/*"
|
||||
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/binpkgs/boards/*/${os_docker_vernum}/*"
|
||||
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/containers/${os_docker_vernum}/flatcar-images-*"
|
||||
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/images/*/${os_vernum}/"
|
||||
fi
|
||||
|
@ -19,7 +19,7 @@
|
||||
# 2. Scripts repo version tag of OS image version to be built is available and checked out.
|
||||
# 3. Flatcar packages container is available via build cache server
|
||||
# from "/containers/[VERSION]/flatcar-packages-[ARCH]-[FLATCAR_VERSION].tar.gz"
|
||||
# or present locally. Container must contain binary packages and torcx artefacts.
|
||||
# or present locally. Container must contain binary packages and torcx artifacts.
|
||||
#
|
||||
# INPUT:
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user