File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy to Azure Web App
1+ name : CD - Deploy to Azure App Service
22
33on :
44 push :
55 branches :
66 - main
77
88jobs :
9- build-and- deploy :
9+ deploy :
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - name : Checkout code
14- uses : actions/checkout@v4
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
1515
16- - name : Set up Java
17- uses : actions/setup-java@v4
16+ - name : Set up JDK 21
17+ uses : actions/setup-java@v3
1818 with :
19- distribution : ' temurin'
2019 java-version : ' 21'
20+ distribution : ' temurin'
21+
22+ - name : Login to Azure
23+ uses : azure/login@v1
24+ with :
25+ creds : ${{ secrets.AZURE_CREDENTIALS }}
2126
2227 - name : Build with Maven
23- run : mvn clean package -DskipTests=true
28+ run : mvn clean package
2429
25- - name : ' Deploy to Azure WebApp '
26- uses : azure/webapps-deploy@v3
30+ - name : Deploy to Azure Web App
31+ uses : azure/webapps-deploy@v2
2732 with :
28- app-name : masterchef
29- publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISH_PROFILE }}
33+ app-name : masterchef-api
34+ slot-name : production
3035 package : target/*.jar
You can’t perform that action at this time.
0 commit comments