My company is working with a C# .NET Core backend and a React frontend. For deployment, I would like for both to be deployed to Azure Web Apps. So far, I have set up two web apps: one for the frontend (this being React) and one for the backend. However, I would like to only have one web app for both, and I really like Travis CI.
- How can I deploy both on the same Azure Web App?
- If it is not possible, how can I deploy each to separate web apps while encrypting the Travis CI environment variables (like
AZURE_WA_USERNAME
) as different values for the branch?
My current .travis.yml
looks like this:
jobs:
include:
- language: csharp
solution: abc
mono: none
dotnet: 5.0.402
before_script:
- cd Backend
script:
- dotnet restore
- dotnet test
deploy:
provider: azure_web_apps
verbose: true
on: main
- language: node_js
node_js:
12
before_install:
- cd Frontend
install:
- npm install
script:
- npm run lint
- npm test
- npm run build
deploy:
provider: azure_web_apps
verbose: true
on: main
What can I do to make this feasible? Thanks.