Skip to content

Commit 1f93360

Browse files
committed
Update function deployment
1 parent f4da511 commit 1f93360

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/_functionAppDeployTemplate.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
required: true
2222
type: string
2323
description: "Specifies the name of the Azure Function."
24+
function_resource_group_name:
25+
required: true
26+
type: string
27+
description: "Specifies the resouce group name of the Azure Function."
2428
secrets:
2529
TENANT_ID:
2630
required: true
@@ -78,7 +82,9 @@ jobs:
7882
working-directory: ${{ inputs.function_directory }}
7983
shell: bash
8084
run: |
81-
func azure functionapp publish ${{ inputs.function_name }} \
82-
--build remote \
83-
--build-native-deps \
84-
--python
85+
zip -r function.zip *
86+
az functionapp deploy \
87+
--resource-group ${{ inputs.function_resource_group_name }} \
88+
--name ${{ inputs.function_name }} \
89+
--src-path ./function.zip \
90+
--type zip

.github/workflows/functionApp.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
python_version: "3.10"
3131
function_directory: "./code/function"
3232
function_name: "myfunc-dev-fctn001"
33+
function_resource_group_name: "myfunc-dev-app-rg"
3334
secrets:
3435
TENANT_ID: ${{ secrets.TENANT_ID }}
3536
CLIENT_ID: ${{ secrets.CLIENT_ID }}

0 commit comments

Comments
 (0)