test : github 액션 작동해서 자동 배포 테스트6 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |