mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-16 06:41:38 +01:00
Merge pull request #335 from flatcar-linux/sayan/no-upload-to-private-ii
The LTS and Pro feature no longer requires the private bucket
This commit is contained in:
commit
f615aac4a2
@ -4,7 +4,7 @@ set -ex
|
||||
AZURE_CATEGORY_OPT=""
|
||||
if [[ "${IS_NON_SPONSORED}" == true ]]
|
||||
then
|
||||
AZURE_CATEGORY_OPT="--azure-category=pro --private"
|
||||
AZURE_CATEGORY_OPT="--azure-category=pro"
|
||||
fi
|
||||
|
||||
rm -f images.json
|
||||
|
||||
@ -104,15 +104,6 @@ if [[ "${FORMATS}" == *"azure_gen2"* ]] ; then
|
||||
fi
|
||||
|
||||
for FORMAT in ${FORMATS}; do
|
||||
# If the format variable ends with _pro it's a Flatcar Pro image and it should
|
||||
# be uploaded to the private bucket.
|
||||
PRIVATE_UPLOAD_OPT=""
|
||||
if [[ -z "${FORMAT##*_pro}" ]]
|
||||
then
|
||||
PRIVATE_UPLOAD_OPT="--private"
|
||||
UPLOAD_ROOT=${UPLOAD_PRIVATE_ROOT}
|
||||
fi
|
||||
|
||||
COMPRESSION_FORMAT="bz2"
|
||||
|
||||
if [[ "${FORMAT}" =~ ^(openstack|openstack_mini|digitalocean)$ ]];then
|
||||
@ -131,6 +122,5 @@ for FORMAT in ${FORMATS}; do
|
||||
--download_root="${DOWNLOAD_ROOT}" \
|
||||
--upload_root="${UPLOAD_ROOT}" \
|
||||
--image_compression_formats="${COMPRESSION_FORMAT}" \
|
||||
--upload \
|
||||
${PRIVATE_UPLOAD_OPT}
|
||||
--upload
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user