Bot releases are visible (Hide)
Published by cormacpayne almost 2 years ago
With the Azure App Service Actions for GitHub, you can automate your workflow to deploy
Azure Web Apps using GitHub Actions.
A repo for Sample apps and sample workflows.
This repository contains the GitHub Action for building Azure Web Apps on Linux using the
Oryx build system. Currently, the following platforms can be built using this
GitHub Action:
Note: as this list may become out of date, please refer to
this document in the Oryx repository for
a more accurate list of platforms and their versions that can be built.
If you are looking for a GitHub Action to deploy your Azure Web App, consider using
azure/webapps-deploy
.
If you are looking for a GitHub Action to build and deploy Azure Container Apps, consider using
azure/container-apps-deploy-action
The definition of this GitHub Action is in action.yml
.
actions/checkout
azure/container-apps-deploy-action
The following is a sample of a workflow that builds a web app in a repository whenever a commit is pushed:
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v1
- name: Building web app
uses: azure/appservice-build@v3
with:
platform: <PLATFORM_NAME>
platform-version: <PLATFORM_VERSION>
source-directory: <SOURCE_DIR>
output-directory: <OUTPUT_DIR>
The following is a sample workflow that builds a web app in a repository and then deploys it to Azure whenever a commit
is pushed:
on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v1
- name: Building web app
uses: azure/appservice-build@v3
with:
platform: <PLATFORM_NAME>
platform-version: <PLATFORM_VERSION>
source-directory: <SOURCE_DIR>
output-directory: <OUTPUT_DIR>
- name: Deploying web app to Azure
uses: azure/webapps-deploy@v1
with:
app-name: <WEB_APP_NAME>
publish-profile: ${{ secrets.AZURE_WEB_APP_PUBLISH_PROFILE }}
The following variables should be replaced in your workflow:
<WEB_APP_NAME>
azure/webapps-deploy
GitHub Action<PLATFORM_NAME>
<PLATFORM_VERSION>
<SOURCE_DIR>
GITHUB_WORKSPACE
environment variable will be used if not provided<OUTPUT_DIR>
The following variable should be set in the GitHub repository's secrets store:
AZURE_WEB_APP_PUBLISH_PROFILE
.publishsettings
) used to deploy the web app; for more information onazure/webapps-deploy
actionFor more information about Microsoft's privacy policy, please see the PRIVACY.md
file.
Microsoft takes the security of our software products and services seriously, which includes all source code
repositories managed through our GitHub organizations, which include Microsoft,
Azure, DotNet, AspNet,
Xamarin, and our GitHub organizations.
For more information about Microsoft's privacy policy, please see the SECURITY.md
file.
To disable this GitHub Action from collecting any data, please set the environment variable ORYX_DISABLE_TELEMETRY
to
true
, as seen below:
- name: Building web app
uses: azure/appservice-build@v3
env:
ORYX_DISABLE_TELEMETRY: true
For more information on contributing to this project, please see the CONTRIBUTING.md
file.
For more information on contributing to this project, please see the LICENSE.md
file.
Published by cormacpayne over 4 years ago
The following is a sample of a workflow that builds a web app in a repository whenever a commit is pushed:
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v1
- name: Building web app
uses: azure/appservice-build@v1
The following is a sample workflow that builds a web app in a repository and then deploys it to Azure whenever a commit is pushed:
on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v1
- name: Building web app
uses: azure/appservice-build@v1
- name: Deploying web app to Azure
uses: azure/webapps-deploy@v1
with:
app-name: <WEB_APP_NAME>
publish-profile: ${{ secrets.AZURE_WEB_APP_PUBLISH_PROFILE }}
The following variable should be replaced in your workflow:
<WEB_APP_NAME>
The following variable should be set in the GitHub repository's secrets store:
AZURE_WEB_APP_PUBLISH_PROFILE
.publishsettings
) used to deploy the web app; for more information on setting this secret, please see the azure/webapps-deploy
actionGitHub Action for building Azure Web Apps is licensed under the MIT License.
Published by qianz2 over 4 years ago
With the Azure App Service Actions for GitHub, you can automate your workflow to deploy Azure Web Apps using GitHub Actions.
Get started today with a free Azure account!
A repo for Sample apps and sample workflows.
This repository contains the GitHub Action for building Azure Web Apps on Linux using the Oryx build system. Currently, the following platforms can be built using this GitHub Action:
If you are looking for a GitHub Action to deploy your Azure Web App, consider using azure/webapps-deploy
.
The definition of this GitHub Action is in action.yml
.
V2 version v2
is released. It's using a new dockerfile for GitHub Actions
to significantly reduce the time for building your app.
actions/checkout
azure/webapps-deploy
The following is a sample of a workflow that builds a web app in a repository whenever a commit is pushed:
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v1
- name: Building web app
uses: azure/appservice-build@v2
with:
platform: <PLATFORM_NAME>
platform-version: <PLATFORM_VERSION>
source-directory: <SOURCE_DIR>
output-directory: <OUTPUT_DIR>
The following is a sample workflow that builds a web app in a repository and then deploys it to Azure whenever a commit is pushed:
on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v1
- name: Building web app
uses: azure/appservice-build@v2
with:
platform: <PLATFORM_NAME>
platform-version: <PLATFORM_VERSION>
source-directory: <SOURCE_DIR>
output-directory: <OUTPUT_DIR>
- name: Deploying web app to Azure
uses: azure/webapps-deploy@v1
with:
app-name: <WEB_APP_NAME>
publish-profile: ${{ secrets.AZURE_WEB_APP_PUBLISH_PROFILE }}
The following variable should be replaced in your workflow:
<PLATFORM_NAME>
<PLATFORM_VERSION>
<SOURCE_DIR>
<OUTPUT_DIR>
<WEB_APP_NAME>
The following variable should be set in the GitHub repository's secrets store:
AZURE_WEB_APP_PUBLISH_PROFILE
.publishsettings
) used to deploy the web app; for more information on setting this secret, please see the azure/webapps-deploy
actionFor more information about Microsoft's privacy policy, please see the PRIVACY.md
file.
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include Microsoft, Azure, DotNet, AspNet, Xamarin, and our GitHub organizations.
For more information about Microsoft's privacy policy, please see the SECURITY.md
file.
To disable this GitHub Action from collecting any data, please set the environment variable ORYX_DISABLE_TELEMETRY
to true
, as seen below:
- name: Building web app
uses: azure/appservice-build@v2
env:
ORYX_DISABLE_TELEMETRY: true
For more information on contributing to this project, please see the CONTRIBUTING.md
file.
For more information on contributing to this project, please see the LICENSE.md
file.