Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/samples-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ resource "azurerm_linux_web_app" "lwa_iftttnet_sample_trigger" {

https_only = true

app_settings = {
"ClientIftttOptions__ServiceKey" = var.ifttt_service_key
}

site_config {
always_on = false
application_stack {
Expand Down
5 changes: 5 additions & 0 deletions .github/samples-infra/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variable "web_app_name" {
type = string
}

variable "ifttt_service_key" {
description = "Service key for IFTTT Service"
type = string
}
1 change: 1 addition & 0 deletions .github/workflows/wf-tf-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
id: tf-plan
env:
TF_VAR_web_app_name: ${{ inputs.tfvarWebAppName }}
TF_VAR_ifttt_service_key: ${{ secrets.IFTTT_SERVICE_KEY }}
run: |
export exitcode=0
terraform plan -detailed-exitcode -no-color -out ${{ env.TFPLAN_FILE_NAME }} || export exitcode=$?
Expand Down
5 changes: 1 addition & 4 deletions samples/InvvardDev.Ifttt.Samples.Trigger/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ClientIftttOptions": {
"ServiceKey": "<YOUR_IFTTT_SERVICE_KEY>"
}
"AllowedHosts": "*"
}