Feature scm-do-build-during-deployment
This will enable build action from Kudu and temporarily change the SCM_DO_BUILD_DURING_DEPLOYMENT setting during the deployment. (To learn more, please visit Kudu repo).
To bypass this and use the existing settings from your function app, please set this to an empty string.
To enable remote build action for your deployment in Kudu, please set scm-do-build-during-deployment and enable-oryx-build both to true.
By default, GitHub Action respects the packages resolved in GitHub workflow, disabling the redundant build action from Kudu endpoint. This field is set to false by default.
Feature enable-oryx-build
Use Oryx Build from Kudu when the package is deployed onto the function app. This will temporarily change the ENABLE_ORYX_BUILD setting during the deployment. This is commonly used in Python function apps and is only available for Linux functions. (To learn more, please visit Oryx repo and Azure Functions Remote Build).
To bypass this and use the existing settings from your function app, please set this to an empty string.
To enable remote build for your Python function app, please set scm-do-build-during-deployment and enable-oryx-build both to true.
By default, GitHub Action respects the packages resolved in GitHub workflow, disabling the redundant build action from Kudu endpoint. This field is set to false by default.
Use Remote Build for Python function app instead of workflow.yml resolved dependencies:
# Comment out 'Resolve Project Dependencies Using Pip' section as it is no longer needed.
# Python package resolution will be completely handled by remote build
# - name: 'Resolve Project Dependencies Using Pip'
# shell: bash
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt --target=".python_packages/lib/site-packages"
#
# Set scm-do-build-during-deployment and enable-oryx-build to 'true' in GitHub Action
# to ensure remote build is enabled for this deployment
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@dev
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '.'
publish-profile: ${{ secrets.LINUX_PYTHON_DED_ENABLE_RB }}
scm-do-build-during-deployment: true
enable-oryx-build: true
Miscellaneous
- Fix an issue where slot-name check is case sensitive. (#50)