Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using GitHub Action to deploy the WAR to Web Apps in Azure. The YAML for build and deploy:
- name: Build with gradle
run: ./gradlew build
- name: Azure WebApp
uses: Azure/webapps-deploy@v2
with:
app-name: <my-app-name>
publish-profile: ${<!-- -->{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: build/libs/*.war
It works, but I have to visit the website with the name of the WAR (i.e, <my-name-name>.azurewebsites.net/<war-name>)
So, how can I deploy the WAR to ROOT directly?
Just rename it to ROOT.war. Add the following between build
and deploy
:
- name: rename to ROOT
run: mv build/libs/*.war build/libs/ROOT.war