Skip to content

fix: don't hardcode deployment environment in logs (#177) #549

fix: don't hardcode deployment environment in logs (#177)

fix: don't hardcode deployment environment in logs (#177) #549

Workflow file for this run

name: CI
on:
push:
branches: [main, release]
pull_request:
branches: "**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Build
run: |
flyctl -c fly.staging.toml deploy --remote-only --build-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy to Staging
run: |
flyctl -c fly.staging.toml deploy --remote-only --wait-timeout=1800
if: ${{ github.ref == 'refs/heads/main' }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy to Production
run: |
flyctl -c fly.production.toml deploy --remote-only --wait-timeout=1800
if: ${{ github.ref == 'refs/heads/release' }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}