Skip to content

Commit

Permalink
Merge pull request #311 from microsoft/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
colbylwilliams authored Feb 3, 2022
2 parents 3f52a43 + 08e6d98 commit 80844d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Reset Demo environment
if: github.event.inputs.reset_demo == 'true'
run: |
echo "Cleaning up TeamCloud SVC resources"
az group delete --subscription ${{ secrets.TEAMCLOUD_SUBSCRIPTION }} -n TeamCloud -y
while read SUBSCRIPTIONID; do
Expand All @@ -97,18 +97,26 @@ jobs:
done < <( az account list --refresh --only-show-errors --query "[?(starts_with(@.name, 'TeamCloud DEMO'))].id" -o tsv )
- name: Deploy Demo environment
- name: Install teamcloud cli extension
run: |
echo "installing teamcloud cli extension"
az extension add -s ${{steps.get-cli.outputs.result}} -y
- name: Deploy fresh Demo environment
if: github.event.inputs.reset_demo == 'true'
run: |
echo "deploying demo teamcloud instance"
az tc deploy --subscription ${{ secrets.TEAMCLOUD_SUBSCRIPTION }} -l eastus --principal-name ${{ secrets.TEAMCLOUD_RM_USERNAME }} --principal-password ${{ secrets.TEAMCLOUD_RM_PASSWORD }} --client-id ${{ secrets.TEAMCLOUD_WEB_USERNAME }} --scope ${{ secrets.TEAMCLOUD_WEB_SCOPE }} -v ${{steps.resolve-tag.outputs.result}} --skip-name-validation ${{ github.event.inputs.reset_demo }} -n teamclouddemo
az tc deploy --subscription ${{ secrets.TEAMCLOUD_SUBSCRIPTION }} -l eastus --principal-name ${{ secrets.TEAMCLOUD_RM_USERNAME }} --principal-password ${{ secrets.TEAMCLOUD_RM_PASSWORD }} --client-id ${{ secrets.TEAMCLOUD_WEB_USERNAME }} --scope ${{ secrets.TEAMCLOUD_WEB_SCOPE }} -v ${{steps.resolve-tag.outputs.result}} -n teamclouddemo
echo "adding webhooks to acr"
az deployment group create --subscription ${{ secrets.TEAMCLOUD_SUBSCRIPTION }} -g TeamCloud -f ./deploy/bicep/webhooks.bicep -p registrySubscriptionId=${{ secrets.TEAMCLOUD_ACR_SUBSCRIPTION }}
- name: Re-deploy Demo environment
if: github.event.inputs.reset_demo == 'false'
run: |
echo "deploying demo teamcloud instance"
az tc deploy --subscription ${{ secrets.TEAMCLOUD_SUBSCRIPTION }} -l eastus --principal-name ${{ secrets.TEAMCLOUD_RM_USERNAME }} --principal-password ${{ secrets.TEAMCLOUD_RM_PASSWORD }} --client-id ${{ secrets.TEAMCLOUD_WEB_USERNAME }} --scope ${{ secrets.TEAMCLOUD_WEB_SCOPE }} -v ${{steps.resolve-tag.outputs.result}} --skip-name-validation -n teamclouddemo
- name: Logout Azure CLI
if: ${{ always() }}
run: az logout
7 changes: 5 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@
"args": [
"scripts/get-url.py"
],
"isBackground": true,
"problemMatcher": []
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"close": true
}
},
{
"label": "npm: start",
Expand Down

0 comments on commit 80844d0

Please sign in to comment.