question

Hedone-5681 avatar image
0 Votes"
Hedone-5681 asked ajkuma-MSFT answered

Deploy 2 repos to Azure Web App

I have a .Net 5 Azure Web App.
Currently I deploy .Net Web app from github using .yml file.
I want do deploy front-end from different github repository to wwwroot.
Unfortunately, "output_location" doesn't work for azure/webapps-deploy@v2. Any suggestions?

 name: Build&Deploy Node.js app to Azure Web App
    
 on:
   push:
     branches:
       - master
   workflow_dispatch:
    
 env:
   AZURE_WEBAPP_NAME: <name>
   AZURE_WEBAPP_PACKAGE_PATH: 'build' 
   NODE_VERSION: '12.x'                # node version to use
    
 jobs:
   build-and-deploy:
     name: Build and Deploy
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
     - name: Use Node.js ${<!-- -->{ env.NODE_VERSION }}
       uses: actions/setup-node@v1
       with:
         node-version: ${<!-- -->{ env.NODE_VERSION }}
     - name: npm install, build, and test
       run: |
         # Build the project, then
         # deploy to Azure Web App.
         npm install
         CI=false npm run build --if-present
 build/process.json
     - name: 'Deploy to Azure WebApp'
       uses: azure/webapps-deploy@v2
       with:
         app-name: ${<!-- -->{ env.AZURE_WEBAPP_NAME }}
         slot-name: 'production' 
         publish-profile: ${<!-- -->{ secrets.AzureAppService_PublishProfile }}
         package: ${<!-- -->{ env.AZURE_WEBAPP_PACKAGE_PATH }}
         output_location: 'wwwroot'
azure-webappsazure-webapps-content-deployment
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Hedone-5681, Thanks for the great question.

With kuduscript we can customize the deployment on App service. Kindly take a look, while I check on this internally and get back to you shortly.


0 Votes 0 ·

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@Hedone-5681, There is only one repository supported per App Service. However, you may use git module to pull other repo along. Please see this helloworld sample https://github.com/KuduApps/RepoWithPublicSubModule for the approach.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.