https://github.com/arnab-developer/azurewebappslotdeployment
Azure webapp slot deployment
https://github.com/arnab-developer/azurewebappslotdeployment
Last synced: 5 months ago
JSON representation
Azure webapp slot deployment
- Host: GitHub
- URL: https://github.com/arnab-developer/azurewebappslotdeployment
- Owner: Arnab-Developer
- License: mit
- Created: 2021-07-07T02:36:15.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-07T03:57:54.000Z (almost 5 years ago)
- Last Synced: 2025-07-24T15:11:08.326Z (11 months ago)
- Language: HTML
- Size: 646 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure webapp slot deployment
This is a demo to show how we can deploy to Azure webapp slot with
GitHub action.
## Steps to run the sample
- Create a new ASP.NET MVC application
- Open Azure Portal and create a new webapp with name `webapp-0707`
- Create a slot with name `test` in the webapp
- Create a GitHub workflow to deploy in the slot with `azure/webapps-deploy@v2`
```
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: webapp-0707
slot-name: test
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_TEST }}
package: ./myapp
```
- Download the slot publish profile and save in the GitHub secret
- Push the MVC Application to GitHub
In every push to the `main` GitHub action will deploy to the `test` slot. After that
we can check the application manually with the slot URL and if everything is good then
swap slot from Azure Portal.
Note: Because this is a demo for security reasons publish profile has been removed from
the GitHub secret.