Skip to content

Commit

Permalink
Add 1-29 release branch Bottlerocket artifacts (#2918)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Feb 12, 2024
1 parent 828e7d1 commit 6f81496
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions projects/kubernetes-sigs/image-builder/BOTTLEROCKET_RELEASES
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
ami-release-version: v1.19.1
ova-release-version: v1.19.1
raw-release-version: v1.19.1
1-29:
ami-release-version: v1.19.1
ova-release-version: 1.19.2
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,18 @@ BOTTLEROCKET_TARGETS_URL="https://updates.bottlerocket.aws/targets/"
OS_DOWNLOAD_PATH=${BOTTLEROCKET_DOWNLOAD_PATH}/${FORMAT}
rm -rf $OS_DOWNLOAD_PATH

# Downloading the TARGET from the Bottlerocket target location using Tuftool
build::common::echo_and_run tuftool download "${OS_DOWNLOAD_PATH}" \
--target-name "${TARGET}" \
--root "${BOTTLEROCKET_DOWNLOAD_PATH}/root.json" \
--metadata-url "${BOTTLEROCKET_METADATA_URL}" \
--targets-url "${BOTTLEROCKET_TARGETS_URL}"
# If TARGET image is available at CloudFront URL, download it from CloudFront
if [[ "$(build::common::echo_and_run curl -I -L -s -o /dev/null -w "%{http_code}" https://$BOTTLEROCKET_CLOUDFRONT_ENDPOINT/$TARGET)" == "200" ]]; then
mkdir $OS_DOWNLOAD_PATH
build::common::echo_and_run curl -L -s https://$BOTTLEROCKET_CLOUDFRONT_ENDPOINT/$TARGET -o $OS_DOWNLOAD_PATH/$TARGET
else
# Otherwise download the TARGET from the Bottlerocket target location using Tuftool
build::common::echo_and_run tuftool download "${OS_DOWNLOAD_PATH}" \
--target-name "${TARGET}" \
--root "${BOTTLEROCKET_DOWNLOAD_PATH}/root.json" \
--metadata-url "${BOTTLEROCKET_METADATA_URL}" \
--targets-url "${BOTTLEROCKET_TARGETS_URL}"
fi

# Post processing for aws and metal variants
if [[ $VARIANT == "aws" ]] || [[ $VARIANT == "metal" ]]; then
Expand Down

0 comments on commit 6f81496

Please sign in to comment.