From 9cb4632f327cd09e00f0fd414a95ae73fedacc1b Mon Sep 17 00:00:00 2001 From: Armando Trejo Oliver Date: Wed, 4 May 2022 20:11:13 -0700 Subject: [PATCH] Update subscription for preview PRs (#1265) * Update subscription for preview PRs * Fix command line args * Replace subid for sub name * Remove --subscription from az storage commands * revert other changes --- .github/workflows/ci.yml | 4 ++-- preview/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f5ea69a6..3d200d1a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,11 +92,11 @@ jobs: name: dist path: dist/ - name: Upload build to preview blob storage - run: az storage blob upload-batch -d '$web' -s 'dist' --account-name cosmosexplorerpreview --subscription cosmosdb-portalteam-generaldemo --destination-path "${{github.event.pull_request.head.sha || github.sha}}" --account-key="${PREVIEW_STORAGE_KEY}" + run: az storage blob upload-batch -d '$web' -s 'dist' --account-name cosmosexplorerpreview --destination-path "${{github.event.pull_request.head.sha || github.sha}}" --account-key="${PREVIEW_STORAGE_KEY}" env: PREVIEW_STORAGE_KEY: ${{ secrets.PREVIEW_STORAGE_KEY }} - name: Upload preview config to blob storage - run: az storage blob upload -c '$web' -f ./preview/config.json --account-name cosmosexplorerpreview --subscription cosmosdb-portalteam-generaldemo --name "${{github.event.pull_request.head.sha || github.sha}}/config.json" --account-key="${PREVIEW_STORAGE_KEY}" + run: az storage blob upload -c '$web' -f ./preview/config.json --account-name cosmosexplorerpreview --name "${{github.event.pull_request.head.sha || github.sha}}/config.json" --account-key="${PREVIEW_STORAGE_KEY}" env: PREVIEW_STORAGE_KEY: ${{ secrets.PREVIEW_STORAGE_KEY }} endtoendemulator: diff --git a/preview/package.json b/preview/package.json index 8118ce77a..0ef3999fc 100644 --- a/preview/package.json +++ b/preview/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "deploy": "az webapp up -n cosmos-explorer-preview --subscription cosmosdb-portalteam-generaldemo -g stfaul", + "deploy": "az webapp up --name \"cosmos-explorer-preview\" --subscription \"cosmosdb-portalteam-generaltest-msft\" --resource-group \"stfaul\"", "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 1" }, @@ -15,4 +15,4 @@ "http-proxy-middleware": "^1.1.0", "node-fetch": "^2.6.1" } -} +} \ No newline at end of file