-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.08 KB
/
deploy.yml
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
name: Fly Deploy Lcode
on:
push:
paths:
- settings.gradle
- build.gradle
- src/**
- fly.toml
- Dockerfile
- .github/workflows/deploy.yml
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: yml 파일 생성
env:
APPLICATION_YML: ${{ secrets.APPLICATION_YML }}
APPLICATION_DB: ${{ secrets.APPLICATION_DB_YML }}
APPLICATION_MAIL: ${{ secrets.APPLICATION_MAIL_YML }}
APPLICATION_SECURITY: ${{ secrets.APPLICATION_SECURITY_YML }}
run: |
echo "$APPLICATION_YML" > src/main/resources/application.yml
echo "$APPLICATION_DB" > src/main/resources/application-db.yml
echo "$APPLICATION_MAIL" > src/main/resources/application-mail.yml
echo "$APPLICATION_SECURITY" > src/main/resources/application-security.yml
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}