Skip to content

Commit a344c54

Browse files
committed
configure_authenticate_github_actions
1 parent 8ec4aaa commit a344c54

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ To open the application, click on the link below the `Done: Deploying service gu
7777
### Configure Github actions
7878

7979
1. Edit [.github/workflows/deploy_azure_resources.yml](.github/workflows/deploy_azure_resources.yml) set the `ACR_NAME: xxxxxxx`
80-
3. Execute `infra/authenticate_github_actions.sh .azure/dev/.env`
80+
2. `gh auth login`
81+
3. Execute `infra/configure_authenticate_github_actions.sh .azure/dev/.env`
8182

8283

8384
### Azure Infrastructue

infra/authenticate_github_actions.sh renamed to infra/configure_authenticate_github_actions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ myApp="azure-rambi-${AZURE_ENV_NAME}"
88
echo "create-for-rbac ${myApp} ${subscriptionId} ${resourceGroup} "
99

1010
# Login to Azure
11-
az login
11+
az login
1212
az ad app create --display-name $myApp
1313

1414

@@ -41,5 +41,10 @@ gh secret set AZURE_CREDENTIALS -b"${json_content}"
4141
set -x
4242
gh secret set -f .env
4343

44+
gh variable set AZURE_RESOURCE_GROUP -b"${resourceGroup}"
45+
gh variable set AZURE_ENV_NAME -b"${AZURE_ENV_NAME}"
46+
gh variable set AZURE_SUBSCRIPTION_ID -b"${subscriptionId}"
47+
gh variable set AZURE_LOCATION -b"${AZURE_LOCATION}"
48+
4449
rm ${myApp}.json
4550
rm .env

0 commit comments

Comments
 (0)