Skip to content

Commit

Permalink
modified python version & function app yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
anssihakanen committed Apr 25, 2024
1 parent b678236 commit f6cac55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/function_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ variables:
vmImageName: 'ubuntu-latest'

# Working Directory
workingDirectory: ./function/azurefunctioncode/
workingDirectory: ./function/

stages:
- stage: Build
displayName: Build stage

jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
runs-on: '$(vmImageName)'

- task: UsePythonVersion@0
displayName: 'Use Python 3.10'
Expand Down Expand Up @@ -60,8 +60,7 @@ stages:
- deployment: Deploy
displayName: Deploy
environment: 'development'
pool:
vmImage: $(vmImageName)
runs-on: $(vmImageName)

strategy:
runOnce:
Expand Down
2 changes: 1 addition & 1 deletion modules/FunctionApp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "azurerm_linux_function_app" "function_app" {
application_insights_key = var.instru_key
application_insights_connection_string = var.conn_string
application_stack {
python_version = 3.11 #FUNCTIONS_WORKER_RUNTIME
python_version = 3.9 #FUNCTIONS_WORKER_RUNTIME
}
}
app_settings = {
Expand Down

0 comments on commit f6cac55

Please sign in to comment.