Skip to content

Commit 10a8957

Browse files
try this
1 parent 453165e commit 10a8957

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/deploy-aks-construction.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,23 @@ permissions:
88
contents: read
99

1010
jobs:
11+
create_resource_group_job:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Create Resource Group
17+
id: create_rg
18+
run: |
19+
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
20+
az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
21+
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location ${{ env.LOCATION }}
22+
env:
23+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
24+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
25+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
26+
RESOURCE_GROUP_NAME: rg-k8s-pygoat-dev-001
27+
LOCATION: canadacentral
1128
reusable_workflow_job:
1229
uses: Azure/AKS-Construction/.github/workflows/AKSC_Deploy.yml@0.10.5
1330
with:

New-GitHubFederatedIdentity.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ $secrets = @{
104104
foreach ($secret in $secrets.GetEnumerator()) {
105105
$value = $secret.Value
106106
$name = $secret.Key
107+
Write-Output "Setting secret $name"
108+
Write-Output "gh secret set $name -b $value -R $githubRepo"
107109
gh secret set $name -b $value -R $githubRepo
108110
}
109111

0 commit comments

Comments
 (0)