-
Notifications
You must be signed in to change notification settings - Fork 26
38 lines (32 loc) · 1.16 KB
/
test-cloud-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: azure-tests
jobs:
cloud-tests:
environment: test-cloud-ci
env:
ARM_TENANT_ID: "${{ secrets.ARM_TENANT_ID }}"
ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}"
AZURE_CORE_OUTPUT: none
steps:
- uses: actions/checkout@v3
with:
token: ${{ github.token }}
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: echo
run: |
echo "1${{ secrets.ARM_CLIENT_ID }}", "2${{ secrets.ARM_CLIENT_SECRET }}", "3${{ secrets.ARM_SUBSCRIPTION_ID }}", "4${{ secrets.ARM_TENANT_ID }}"
echo "1${{ secrets }}"
# Follow
# https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret
# to generate a clientId as well as a clientSecret
- name: Azure login
uses: azure/login@v2
with:
creds: |
{
"clientId": "1${{ secrets.ARM_CLIENT_ID }}",
"clientSecret": "2${{ secrets.ARM_CLIENT_SECRET }}",
"subscriptionId": "3${{ secrets.ARM_SUBSCRIPTION_ID }}",
"tenantId": "4${{ secrets.ARM_TENANT_ID }}"
}