Skip to content

Commit

Permalink
暫時移動 environment 設定到 fly.io secret,deploy -e 設定無法切分變數
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-tf committed Jul 23, 2023
1 parent bbf26b3 commit d808cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/deploy_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 0.1.3
- 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 }}
flyctl deploy --config fly-app-beta.toml --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- run: echo "Deploy to fly develop"
17 changes: 1 addition & 16 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 0.1.3
- run: |
flyctl deploy --config fly-app-prod.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 }}
flyctl deploy --config fly-app-prod.toml --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- run: echo "Deploy to fly prod"

0 comments on commit d808cfd

Please sign in to comment.