Skip to content

Commit

Permalink
ci: deploy monolith and balancer to staging branch (dyc3#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored and cjrkoa committed Jan 26, 2024
1 parent 5f802e6 commit 8ba9127
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,31 @@ jobs:
docker tag opentogethertube dyc3/opentogethertube:latest
- name: Push to Dockerhub
run: docker push dyc3/opentogethertube:latest
deploy-fly:

deploy-fly-staging-monolith:
runs-on: ubuntu-latest
name: Deploy on fly.io
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [test, lint]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --config deploy/fly.staging.monolith.toml --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
deploy-fly-staging-balancer:
runs-on: ubuntu-latest
name: Deploy on fly.io
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [test, lint]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --config deploy/fly.staging.balancer.toml --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

deploy-fly-prod:
runs-on: ubuntu-latest
name: Deploy on fly.io
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down

0 comments on commit 8ba9127

Please sign in to comment.