Skip to content

Commit 3efb3ba

Browse files
committed
feat 2
1 parent c11325f commit 3efb3ba

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
1-
name: Deploy to Azure Web App
1+
name: CD - Deploy to Azure App Service
22

33
on:
44
push:
55
branches:
66
- main
77

88
jobs:
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

0 commit comments

Comments
 (0)