mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 15:06:58 +02:00
Since archive_build is also called by cbuild we need to hide the
prebuilt call behind a flag.
This commit is contained in:
parent
720364bf56
commit
3b0c6d8f83
@ -45,6 +45,7 @@ DEFINE_string gsutil_archive "" \
|
|||||||
DEFINE_integer keep_max 0 "Maximum builds to keep in archive (0=all)"
|
DEFINE_integer keep_max 0 "Maximum builds to keep in archive (0=all)"
|
||||||
DEFINE_boolean official_build $FLAGS_FALSE "Set CHROMEOS_OFFICIAL=1 for release builds."
|
DEFINE_boolean official_build $FLAGS_FALSE "Set CHROMEOS_OFFICIAL=1 for release builds."
|
||||||
DEFINE_boolean test_mod $FLAGS_TRUE "Modify image for testing purposes"
|
DEFINE_boolean test_mod $FLAGS_TRUE "Modify image for testing purposes"
|
||||||
|
DEFINE_boolean prebuilt_upload $FLAGS_FALSE "Upload prebuilt binary packages."
|
||||||
DEFINE_string to "$DEFAULT_TO" "Directory of build archive"
|
DEFINE_string to "$DEFAULT_TO" "Directory of build archive"
|
||||||
DEFINE_string zipname "image.zip" "Name of zip file to create."
|
DEFINE_string zipname "image.zip" "Name of zip file to create."
|
||||||
|
|
||||||
@ -265,6 +266,9 @@ then
|
|||||||
"${LAST_CHANGE}/${HWQUAL_NAME}.tar.bz2"
|
"${LAST_CHANGE}/${HWQUAL_NAME}.tar.bz2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ $FLAGS_upload_prebuilt -eq $FLAGS_TRUE ]
|
||||||
|
then
|
||||||
# Construct prebuilt upload command.
|
# Construct prebuilt upload command.
|
||||||
# This will upload prebuilt packages to Google Storage.
|
# This will upload prebuilt packages to Google Storage.
|
||||||
prebuilt_cmd="${SCRIPTS_DIR}/prebuilt.py"
|
prebuilt_cmd="${SCRIPTS_DIR}/prebuilt.py"
|
||||||
@ -278,6 +282,7 @@ fi
|
|||||||
|
|
||||||
echo "Running $prebuilt_cmd"
|
echo "Running $prebuilt_cmd"
|
||||||
$prebuilt_cmd
|
$prebuilt_cmd
|
||||||
|
fi
|
||||||
|
|
||||||
gsutil_archive "${ZIPFILE}" "${LAST_CHANGE}/${FLAGS_zipname}"
|
gsutil_archive "${ZIPFILE}" "${LAST_CHANGE}/${FLAGS_zipname}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user