-
Notifications
You must be signed in to change notification settings - Fork 22
33 lines (31 loc) · 1.16 KB
/
deploy_beta.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
name: deploy-beta
on:
push:
branches:
- main
jobs:
deploy-app-beta:
name: Deploy app to Fly.io develop
environment: beta
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: |
flyctl deploy --config fly-app-beta.toml --remote-only \
-e "BOT_TOKEN=${{ secrets.BOT_TOKEN }},\
DB_HOST=${{ secrets.DB_HOST }},\
DB_NAME=${{ secrets.DB_NAME }},\
DB_PASSWORD=${{ secrets.DB_PASSWORD }},\
DB_PORT=${{ secrets.DB_PORT }},\
DB_USER=${{ secrets.DB_USER }},\
LOGGING_LEVEL=${{ secrets.LOGGING_LEVEL }},\
TELEGRAM_BOT_MODE=${{ secrets.TELEGRAM_BOT_MODE }},\
LINE_NOTIFY_REDIRECT_URL=${{ secrets.LINE_NOTIFY_REDIRECT_URL }},\
LINE_NOTIFY_CLIENT_ID=${{ secrets.LINE_NOTIFY_CLIENT_ID }},\
LINE_NOTIFY_CLIENT_SECRET=${{ secrets.LINE_NOTIFY_CLIENT_SECRET }},\
PERIOD_HOUR=${{ secrets.PERIOD_HOUR }},\
WEBHOOK_URL=${{ secrets.WEBHOOK_URL }}"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- run: echo "Deploy to fly develop"