We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d942ed3 commit 42cd54aCopy full SHA for 42cd54a
3 files changed
.github/workflows/build.yml
@@ -43,5 +43,5 @@ jobs:
43
- name: Terraform Apply
44
run: |
45
terraform init
46
- terraform apply -auto-approve -var="image_tag=${{ github.ref_name }}"
+ terraform apply -auto-approve -var="image_tag=${{ github.ref_name }}" -var="subscription_id=${{ secrets.AZURE_SUBSCRIPTION_ID }}"
47
working-directory: ./terraform
terraform/providers.tf
@@ -9,4 +9,5 @@ terraform {
9
10
provider "azurerm" {
11
features {}
12
+ subscription_id = var.subscription_id
13
}
terraform/variables.tf
@@ -13,3 +13,9 @@ variable "image_tag" {
type = string
14
default = "latest"
15
16
+
17
+variable "subscription_id" {
18
+ description = "Azure Subscription ID"
19
+ type = string
20
+ default = ""
21
+}
0 commit comments