* binary cache and manifest * update packages * udpate * add cache to private pipeline * next try * aver * other * again * aver quick * more * this way * again * one more * print * test * use depend * more deps * dep * Apply suggestions from code review Co-authored-by: Daniel Jurek <djurek@microsoft.com> * updated to use group variable * update identity * end line * Update vcpkg.json * Apply suggestions from code review * cspell * remove comment * updates * make cache mode depend on SAS env var * map env var only for internal pipelines * other approach * what about this * and this * try * amd * another * extra step * typo * override for internal * use default succeded * azure core update manifest * a * run cmake-generate nightly as well * check for SAS * check cache * no secret * fix is secret * pass explicit * use secret all the time * char * One more * export * echos * last * array * remove question * ok * weird * use account key * substring * VCPKG_BINARY_SOURCES * Add module installation * task: * Correct pathing for module * update source gen * format * update spelling * IsWindoows * Use pwsh * Cannot clobber with PSModule-Helpers. Attempt plain install * Attempt plain install * Revert unnecessary change to Update-DocsMsToc.ps1 * template ready * curl is required on Windows as well for some CI gates * attestation * fix format Co-authored-by: Daniel Jurek <djurek@microsoft.com>
18 lines
639 B
PowerShell
18 lines
639 B
PowerShell
param(
|
|
[string] $StorageAccountKey
|
|
)
|
|
Install-Module "Az.Storage" -AllowClobber -Force
|
|
|
|
$ctx = New-AzStorageContext `
|
|
-StorageAccountName 'cppvcpkgcache' `
|
|
-StorageAccountKey $StorageAccountKey
|
|
$token = New-AzStorageAccountSASToken `
|
|
-Service Blob `
|
|
-ResourceType Object `
|
|
-Permission "rwc" `
|
|
-Context $ctx
|
|
$vcpkgBinarySourceSas = $token.Substring(1)
|
|
|
|
Write-Host "Setting vcpkg binary cache to read and write"
|
|
Write-Host "##vso[task.setvariable variable=VCPKG_BINARY_SOURCES_SECRET;issecret=true;]clear;x-azblob,https://cppvcpkgcache.blob.core.windows.net/public-vcpkg-container,$vcpkgBinarySourceSas,readwrite"
|