-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (29 loc) · 915 Bytes
/
ci-cd.yml
File metadata and controls
38 lines (29 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: AzureSpringApps
on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CHATBOT_API_KEY: ${{ secrets.CHATBOT_API_KEY }}
environment: GitHubEnvironment
steps:
- uses: actions/checkout@main
- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- name: maven build, clean
working-directory: ./complete
run: |
mvn clean package
# Maven plugin can consume this authentication method automatically
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
# Maven deploy, make sure you have correct configurations in your pom.xml
- name: deploy to Azure Spring Apps using Maven
working-directory: ./complete
run: |
mvn azure-spring-apps:deploy