Skip to content

Commit

Permalink
CI/CD env var adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
enesonus committed Nov 14, 2023
1 parent ca034ce commit 8621f5d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
# - run: |
# flyctl secrets set FLY_API_TOKEN="$FLY_API_TOKEN" \
# DB_URL="$DB_URL" \
# DB_USER="$DB_USER" \
# DB_PASSWORD="$DB_PASSWORD" \
# FIREBASE_CREDENTIALS="$FIREBASE_CREDENTIALS" \
# --app ovatify-backend
- run: |
flyctl secrets set FLY_API_TOKEN="$FLY_API_TOKEN" \
DB_URL="$DB_URL" \
DB_USER="$DB_USER" \
DB_PASSWORD="$DB_PASSWORD" \
FIREBASE_CREDENTIALS="$FIREBASE_CREDENTIALS" \
--app ovatify-backend
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
DB_URL: ${{ secrets.DB_URL }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
FIREBASE_CREDENTIALS: ${{ secrets.FIREBASE_CREDENTIALS }}
echo "${{ secrets.ENV_FILE }}" > .env
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 8621f5d

Please sign in to comment.