Skip to content

Commit

Permalink
set bing maps api key env var for npm run build step (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusFelling committed May 1, 2024
1 parent 9a32b45 commit bd5d19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .azurepipelines/contoso-traders-cloud-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ stages:
- script: npm ci
displayName: npm ci
workingDirectory: src/ContosoTraders.Ui.Website
- script: echo "##vso[task.setvariable variable=REACT_APP_BINGMAPSKEY]$(BINGMAPSKEY)"
displayName: set REACT_APP_BINGMAPSKEY
- script: npm run build
displayName: npm run build
workingDirectory: src/ContosoTraders.Ui.Website
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/contoso-traders-cloud-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ jobs:
working-directory: src/ContosoTraders.Ui.Website
- name: npm run build
run: npm run build
env:
REACT_APP_BINGMAPSKEY: ${{ secrets.BINGMAPSKEY }}
working-directory: src/ContosoTraders.Ui.Website
- name: deploy ui to storage
uses: azure/CLI@v1
Expand Down

0 comments on commit bd5d19e

Please sign in to comment.