Open hooniegit opened 1 year ago
$ vi .github/workflows/fly.yml
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.<KEY 이름> }}
├── .github
│ └── workflows
│ └── fly.yml
├── Dockerfile
├── README.md
├── app
│ ├── __init__
│ └── main.py
├── fly.toml
└── requirements.txt
fly 토큰 발급 및 레포지토리로의 등록
| Settings > Secrets And Variables > Actions > New repository secret
| Add secret