Skip to content

Commit

Permalink
Update Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-GitH2 committed Feb 19, 2024
1 parent 85352b8 commit 460cabe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_nd_deploy_to_AKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
runs-on: ubuntu-latest
needs: build
env:
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
RESOURCE_GROUP: ${{ secrets.AZURE_RESOURCE_GROUP }}
STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
CONTAINER_NAME: ${{ secrets.STORAGE_CONTAINER_NAME }}
ARM_CLIENT_ID: ${{ vars.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ vars.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ vars.ARM_TENANT_ID }}
RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
STORAGE_ACCOUNT: ${{ vars.AZURE_STORAGE_ACCOUNT }}
CONTAINER_NAME: ${{ vars.STORAGE_CONTAINER_NAME }}
TF_LOG: INFO
TF_INPUT: false

Expand Down
6 changes: 3 additions & 3 deletions authentication_and_secrets/modules/github_auth/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "github_repository" "main" {
full_name = var.repository_name
}

resource "github_actions_secret" "secrets" {
resource "github_actions_variable" "secrets" {
for_each = {
AZURE_STORAGE_ACCOUNT = var.storage_account.name
AZURE_RESOURCE_GROUP = var.resource_group_name
Expand All @@ -13,7 +13,7 @@ resource "github_actions_secret" "secrets" {
}

repository = data.github_repository.main.name
secret_name = each.key
plaintext_value = each.value
variable_name = each.key
value = each.value

}

0 comments on commit 460cabe

Please sign in to comment.