Skip to content

Commit

Permalink
Merge branch 'master' into chore/cache-new-cni-images
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtr authored May 31, 2024
2 parents 9895571 + 6d04acf commit b7cdb15
Show file tree
Hide file tree
Showing 111 changed files with 44,165 additions and 3,401 deletions.
1 change: 1 addition & 0 deletions .pipelines/templates/.builder-release-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ steps:
-e LOCATION="${AZURE_LOCATION}" \
-e OS_TYPE="Linux" \
-e CLASSIC_BLOB=${CLASSIC_BLOB} \
-e POOL_IDENTITY_RESOURCE_ID=$(POOL_IDENTITY_RESOURCE_ID) \
-e SIG_GALLERY_NAME=${SIG_GALLERY_NAME} \
-e SIG_IMAGE_NAME=${SIG_IMAGE_NAME} \
-e CAPTURED_SIG_VERSION=${captured_sig_version} \
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/datamodel/linux_sig_version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ostype": "LinuxSIGImageVersion",
"version": "202405.20.0"
"version": "202405.27.0"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash -e

required_env_vars=(
"POOL_IDENTITY_RESOURCE_ID"
"SUBSCRIPTION_ID"
"RESOURCE_GROUP_NAME"
"CAPTURED_SIG_VERSION"
Expand Down Expand Up @@ -67,8 +68,9 @@ echo "Converted $sig_resource_id to $disk_resource_id"
# shellcheck disable=SC2102
sas=$(az disk grant-access --ids $disk_resource_id --duration-in-seconds 3600 --query [accessSas] -o tsv)

echo "Logging into azcopy with MSI"
azcopy-preview login --identity
echo "Using azcopy with pool identity: $POOL_IDENTITY_RESOURCE_ID"
export AZCOPY_AUTO_LOGIN_TYPE="MSI"
export AZCOPY_MSI_RESOURCE_STRING="$POOL_IDENTITY_RESOURCE_ID"

echo "Uploading $disk_resource_id to ${CLASSIC_BLOB}/${CAPTURED_SIG_VERSION}.vhd"
azcopy-preview copy "${sas}" "${CLASSIC_BLOB}/${CAPTURED_SIG_VERSION}.vhd" --recursive=true || exit $?
Expand Down
Loading

0 comments on commit b7cdb15

Please sign in to comment.