Comments (5)
Issue-Label Bot is automatically applying the label feature_request
to this issue, with a confidence of 0.92. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
from webapps-deploy.
@N-Usha please take a look at this
from webapps-deploy.
@shibayan - Could you plz elaborate your scenario further? I couldnt quite understand what you meant by below: Can you plz explain?
but it would be redundant to not be able to use the same Action when deploying in parallel using strategy.
from webapps-deploy.
@N-Usha I understand. I'll show you the actual Workflow definition.
Deploying to App Service / Azure Functions is often time consuming, so I use artifacts to deploy in parallel if the project contains many applications.
- webapp-test
- App Service, ASP.NET Core application
- function-test
- Azure Functions app
Currently, I simply define multiple jobs to deploy in parallel, but they are redundant as they are nearly identical except for the application name.
# for webapp
deploy-webapp:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: webapp-test
path: publish
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy
uses: Azure/webapps-deploy@v2
with:
app-name: webapp-test
package: publish
# for function
deploy-function:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: function-test
path: publish
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy
uses: Azure/functions-action@v1
with:
app-name: function-test
package: publish
Therefore, I am thinking of reusing Job of deployment using strategy and matrix as follows.
But it is inconvenient that webapps-deploy
action needs to be prepared separately with Web App and Function because deployment to Azure Functions cannot be done in Azure CLI mode.
# deploy all application at once
deploy-all:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
app: [webapp-test, function-test]
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.app }}
path: publish
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy to Dev
uses: Azure/webapps-deploy@v2
with:
app-name: ${{ matrix.app }}
package: publish
This workflow actually fails with an error when deploying to Azure Functions.
from webapps-deploy.
Thanks for the explanation @shibayan. I understand your requirement now. We don't intend to overload the Webapps-deploy action for function-app deployments in the near future. However if we see more customer impact and asks around this requirement in the future, we may reconsider this in the future. Thanks!
from webapps-deploy.
Related Issues (20)
- Git Python Causes problems while creating directories HOT 2
- Allow to overwrite GitHub comment instead of creating a new one HOT 1
- Successful deployment reported despite error HOT 2
- Code is not updated in linux based Azure Functions using ZIP package deploy HOT 1
- v3 deployment does not work with clean:false HOT 13
- Not able to apply npm install flags HOT 1
- README doesn't have a v3 example or explanation of the differences HOT 4
- Add sample(s) for OIDC HOT 1
- Azure Web App deployment from .zip fails after successfully deploying the content HOT 2
- V3 using node.js 16 upgrade to node.js 20 seeing 16 is deprecated HOT 16
- Deploy to web app does not working for .NET 8 and Linux based deployment - azure/webapps-deploy@v3 HOT 4
- Microsoft Azure Build and deploy PHP app to Azure Web App: Laravel App - Unable to create lockable file HOT 2
- Deployment Faile***, Error: Resource azwb********-tot doesn't exist. HOT 5
- The new option Clean should have defaulted to false or been highlighted as a breaking change HOT 4
- Azure Web Application not updated, action still claims "Success" HOT 9
- Can't deploy to ACA-based Function App
- Cann't show submit messages, ONLY show OneDeploy
- Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.'
- nodes
- util_1.promisify is not a function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapps-deploy.