Skip to content

Commit

Permalink
Fix test infra deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Oct 24, 2023
1 parent 2d457bd commit 886d9ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ jobs:
runs-on: ubuntu-latest

steps:
# Login
- name: Azure Login
run: az login --service-principal -u ${{ secrets.deploy_sp_id }} -p ${{ secrets.deploy_sp_secret }} --tenant ${{ secrets.tenant_id }}
- name: Azure Subscription Selection
run: az account set -n "${{ secrets.TEST_SUB }}"
# Add Kusto extension to Azure CLI
- name: Install Kusto extension
run: az extension add -n kusto
# Turn cluster on
- name: Turn on cluster (if off)
shell: bash
run: |
run: |
# Retrieve cluster name
clusterName=$(az kusto cluster list -g ${{ secrets.test_rg }} --query "[?tags.testLevel=='integration'].name" -o tsv)
state=$(az kusto cluster list -g ${{ secrets.test_rg }} --query "[?tags.testLevel=='integration'].state" -o tsv)
echo "Cluster Name: $clusterName"
echo "State: '$state'"
echo "State: $state"
if [ "$state" == "Stopped" ]
then
# Actually start the cluster
Expand Down

0 comments on commit 886d9ce

Please sign in to comment.