Skip to content

Commit

Permalink
ci: add missing AZURE_STORAGE_ACCOUNT_*
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuthor committed Jun 13, 2024
1 parent 5ef1fdb commit ed67161
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/azure_packer_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
BASE_IMAGE_VERSION: ${{ inputs.base-version }}
KMS_VERSION: ${{ inputs.kms-version }}
AI_RUNNER_VERSION: ${{ inputs.base-version }}
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}
AZURE_STORAGE_ACCOUNT_KEY: ${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }}
id: env
run: |
set -ex
Expand Down Expand Up @@ -102,4 +104,6 @@ jobs:
sas=$(az disk grant-access --resource-group "$RESOURCE_GROUP" --name "$OS_DISK" --duration-in-seconds 3600 --access-level Read --query accessSas -o tsv)
az storage blob copy start --destination-blob $OS_DISK.vhd --destination-container packer --account-name "$AZURE_STORAGE_ACCOUNT_NAME" --account-key "$AZURE_STORAGE_ACCOUNT_KEY" --source-uri "$sas"
az disk delete -g "$RESOURCE_GROUP" --name "$OS_DISK" --yes
fi

0 comments on commit ed67161

Please sign in to comment.