Skip to content

Commit

Permalink
testing automation flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-Microsoft committed Aug 28, 2024
1 parent ba274da commit 64eb39b
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ on:
push:
branches:
- PSL-Automation-Flow-Draft
workflow_dispatch:
inputs:
environmentName:
description: 'The name of the environment'
required: true
default: "pslTestAuto2"
location:
description: 'The location for the deployment'
required: true
default: "eastus2"


jobs:
deploy:
Expand All @@ -31,27 +20,16 @@ jobs:
- name: Login to Azure
run: |
az login --service-principal -u ${{ secrets.AUTO_AZURE_CLIENT_ID }} -p ${{ secrets.AUTO_AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AUTO_AZURE_TENANT_ID }}
az account set --subscription ${{ secrets.AUTO_AZURE_SUBSCRIPTION_ID }}
echo "TestAZURE_SUBSCRIPTION_ID=${{ secrets.AUTO_AZURE_SUBSCRIPTION_ID }}"
echo "TestAZURE_CLIENT_ID=${{ secrets.AUTO_AZURE_CLIENT_ID }}"
echo "TestAZURE_CLIENT_SECRET=${{ secrets.AUTO_AZURE_CLIENT_SECRET }}"
echo "TestAZURE_TENANT_ID=${{ secrets.AUTO_AZURE_TENANT_ID }}"
- name: Install Bicep CLI
run: az bicep install

- name: Deploy Bicep Template
run: |
echo "Environment Name: ${{ github.event.inputs.environmentName }}"
echo "Location: ${{ github.event.inputs.location }}"
az deployment sub create \
--name autoDemo \
--location eastus \
--template-file infra/main.bicep \
--parameters environmentName=${{ github.event.inputs.environmentName }} location=${{ github.event.inputs.location }}
# --parameters environmentName=pslautomation location=eastus2
--parameters environmentName=pslautomation location=eastus2

0 comments on commit 64eb39b

Please sign in to comment.