You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/imagesets.yml
+15-32Lines changed: 15 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
#
17
17
# <image-set-name>:
18
18
# <cloud>: <cloud> is the name of a @cloud annotated function in
19
-
# `generate/workers.py` (`aws`/`gcp`). The value
19
+
# `generate/workers.py` (`aws`/`azure`/`gcp`). The value
20
20
# underneath the key depends on the cloud (see below).
21
21
# workerImplementation: the name of a @worker_pool_type annotated function in
22
22
# `generate/workers.py` (with `-`s replaced with `_`s)
@@ -43,6 +43,15 @@
43
43
# gcp:
44
44
# image: Fully qualified name of the machine image to spawn.
45
45
# e.g. `projects/taskcluster-imaging/global/images/docker-worker-gcp-googlecompute-2019-11-04t22-31-35z`
46
+
#
47
+
#
48
+
# Azure Image Sets
49
+
#
50
+
# Azure image sets include a single image, specified as follows:
51
+
#
52
+
# azure:
53
+
# image: Fully qualified name of the machine image to spawn.
54
+
# e.g. `/subscriptions/8a205152-b25a-417f-a676-80465535a6c9/resourceGroups/rg-tc-eng-images/providers/Microsoft.Compute/images/imageset-rl39zzh148qxjishz629-centralus`
yq w -i ../config/imagesets.yml "${IMAGE_SET}.workerConfig.genericWorker.config.workerTypeMetadata.machine-setup.script""https://raw.githubusercontent.com/taskcluster/community-tc-config/${IMAGE_SET_COMMIT_SHA}/imagesets/${BOOTSTRAP_SCRIPT}"
238
224
fi
239
225
240
-
git add ../config/imagesets.yml
226
+
#git add ../config/imagesets.yml
241
227
242
228
case"${CLOUD}"in
243
229
aws)
244
230
git commit -m "Built new AWS AMIs for imageset ${IMAGE_SET}"
245
231
;;
246
232
azure)
247
-
git commit -m "Built new Azure machine images for imageset ${IMAGE_SET}"
233
+
#git commit -m "Built new Azure machine images for imageset ${IMAGE_SET}"
248
234
;;
249
235
google)
250
236
git commit -m "Built new google machine image for imageset ${IMAGE_SET}"
251
237
;;
252
238
esac
253
239
254
-
retry git -c pull.rebase=true pull "${OFFICIAL_GIT_REPO}" main
IMAGE_VERSION_ID="$(retry az sig image-version show --gallery-image-definition="${IMAGE_SET}" --gallery-image-version="${TASKCLUSTER_VERSION}" --gallery-name="${IMAGE_SET//-/_}" --resource-group="${AZURE_IMAGE_RESOURCE_GROUP}" --query id --output tsv)"
760
+
732
761
{
733
762
echo"Instance: ${NAME_WITH_REGION}"
734
763
echo"Public IP: ${PUBLIC_IP}"
735
764
echo"Username: azureuser"
736
765
echo"Password: ${ADMIN_PASSWORD}"
737
-
echo"Image: ${IMAGE_ID}"
738
-
} >"azure.${REGION}.secrets"
766
+
echo"Image: ${IMAGE_VERSION_ID}"
767
+
} >"azure.secrets"
739
768
}
740
769
741
770
############### Deploy all image sets ###############
0 commit comments