prepare ORAS tooling early, so we don't get spurious failures "only on first build"

This commit is contained in:
Ricardo Pardini
2023-03-17 00:15:49 -03:00
committed by Igor Pečovnik
parent 4e6fd3a507
commit 2f4f117000
3 changed files with 12 additions and 0 deletions

View File

@@ -219,6 +219,9 @@ function obtain_complete_artifact() {
function build_artifact_for_image() {
initialize_artifact "${WHAT}"
# Make sure ORAS tooling is installed before starting.
run_tool_oras
# Detour: if building kernel, and KERNEL_CONFIGURE=yes, ignore artifact cache.
if [[ "${WHAT}" == "kernel" && "${KERNEL_CONFIGURE}" == "yes" ]]; then
display_alert "Ignoring artifact cache for kernel" "KERNEL_CONFIGURE=yes" "info"