Skip to content

Commit

Permalink
chore: Update AZURE_FUNCTIONAPP_PACKAGE_PATH in landing-backend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ppokrovskii committed Jun 21, 2024
1 parent 9ee0929 commit d7663c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/landing-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

env:
AZURE_FUNCTIONAPP_NAME: 'resumematchpro-dev-function-app' # set this to your function app name on Azure
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'azfunctions' # set this to the path to your function app project, defaults to the repository root
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'landing_backend' # set this to the path to your function app project, defaults to the repository root
PYTHON_VERSION: '3.11' # set this to the python version to use (e.g. '3.6', '3.7', '3.8')

jobs:
Expand Down
2 changes: 1 addition & 1 deletion infra/runtime/function_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ output "FUNCTION_APP_URL" {
}

# Output Function App publish profile
output "GET_PUBLISHING_PROFILE_SCRIPT" {
output "AZFUNCTIONS_GET_PUBLISHING_PROFILE_SCRIPT" {
value = "az functionapp deployment list-publishing-profiles --name ${azurerm_linux_function_app.resumematchpro.name} --resource-group ${azurerm_resource_group.rg.name} --xml"
description = "Run this command in your shell to retrieve the Azure Function App's publishing profile."
}
26 changes: 13 additions & 13 deletions infra/runtime/github_actions_secrets.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
data "github_repository" "repo" {
full_name = "ppokrovskii/ResumeMatchPro"
}
# data "github_repository" "repo" {
# full_name = "ppokrovskii/ResumeMatchPro"
# }

resource "github_repository_environment" "repo_environment" {
repository = data.github_repository.repo.name
environment = terraform.workspace
}
# resource "github_repository_environment" "repo_environment" {
# repository = data.github_repository.repo.name
# environment = terraform.workspace
# }

resource "github_actions_environment_secret" "LANDING_BACKEND_PUBLISHING_PROFILE" {
repository = data.github_repository.repo.name
environment = github_repository_environment.repo_environment.environment
secret_name = "LANDING_BACKEND_PUBLISHING_PROFILE"
plaintext_value = "az functionapp deployment list-publishing-profiles --name ${azurerm_linux_function_app.landing_backend.name} --resource-group ${azurerm_resource_group.rg.name} --xml"
}
# resource "github_actions_environment_secret" "LANDING_BACKEND_PUBLISHING_PROFILE" {
# repository = data.github_repository.repo.name
# environment = github_repository_environment.repo_environment.environment
# secret_name = "LANDING_BACKEND_PUBLISHING_PROFILE"
# plaintext_value = "az functionapp deployment list-publishing-profiles --name ${azurerm_linux_function_app.landing_backend.name} --resource-group ${azurerm_resource_group.rg.name} --xml"
# }

0 comments on commit d7663c6

Please sign in to comment.