-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 982 Bytes
/
deploy.yml
File metadata and controls
39 lines (32 loc) · 982 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
39
name: Deploy Spring Boot API to Azure
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout código
uses: actions/checkout@v4
- name: Configurar Java
uses: actions/setup-java@v4
with:
java-version: ${{ secrets.JAVA_VERSION }}
distribution: 'temurin'
- name: Build com Maven
run: mvn clean package
- name: Login no Azure
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy no Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
package: target/demo-0.0.1-SNAPSHOT.jar
env:
STORAGE_ACESS_LINK: ${{ secrets.STORAGE_ACESS_LINK }}
STORAGE_USER: ${{ secrets.STORAGE_USER }}
STORAGE_PASS: ${{ secrets.STORAGE_PASS }}
TOKENPASS: ${{ secrets.JWT_SECRET }}