Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Jul 12, 2024
1 parent ad15a87 commit 3a6c445
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions .github/workflows/exec-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
- clusterSetup

runs-on: ubuntu-latest
# The environment is bound to the federated credentials on the user managed Identity in Azure
environment: dev

env:
# See OS catalog here: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
Expand Down Expand Up @@ -87,10 +89,13 @@ jobs:
run: ls -l bin
- name: Azure CLI Version
run: az version
- 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 }}"
# Using the user MI as exposed in https://yourazurecoach.com/2022/12/29/use-github-actions-with-user-assigned-managed-identity/
- name: Log into Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.TEST_CLIENT_ID }}
tenant-id: ${{ secrets.TEST_TENANT_ID }}
subscription-id: ${{ secrets.TEST_SUB }}
- name: CLI Kusto Extension
run: az extension add -n kusto
# Set environment variables
Expand Down Expand Up @@ -135,6 +140,8 @@ jobs:

# This can run in parallel with the other job as they target different databases
runs-on: macos-latest
# The environment is bound to the federated credentials on the user managed Identity in Azure
environment: dev

env:
# See OS catalog here: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
Expand Down Expand Up @@ -170,10 +177,13 @@ jobs:
run: ls -l bin
- name: Azure CLI Version
run: az version
- 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 }}"
# Using the user MI as exposed in https://yourazurecoach.com/2022/12/29/use-github-actions-with-user-assigned-managed-identity/
- name: Log into Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.TEST_CLIENT_ID }}
tenant-id: ${{ secrets.TEST_TENANT_ID }}
subscription-id: ${{ secrets.TEST_SUB }}
- name: CLI Kusto Extension
run: az extension add -n kusto
# Set environment variables
Expand Down Expand Up @@ -217,6 +227,8 @@ jobs:
- mac

runs-on: windows-latest
# The environment is bound to the federated credentials on the user managed Identity in Azure
environment: dev

env:
# See OS catalog here: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
Expand Down Expand Up @@ -252,10 +264,13 @@ jobs:
run: ls -l bin
- name: Azure CLI Version
run: az version
- 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 }}"
# Using the user MI as exposed in https://yourazurecoach.com/2022/12/29/use-github-actions-with-user-assigned-managed-identity/
- name: Log into Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.TEST_CLIENT_ID }}
tenant-id: ${{ secrets.TEST_TENANT_ID }}
subscription-id: ${{ secrets.TEST_SUB }}
- name: CLI Kusto Extension
run: az extension add -n kusto
# Set environment variables
Expand Down

0 comments on commit 3a6c445

Please sign in to comment.