Skip to content

Commit f65eaf6

Browse files
authored
ci: deploy monolith and balancer to staging branch (#1191)
1 parent 67023d5 commit f65eaf6

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/main.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,31 @@ jobs:
118118
docker tag opentogethertube dyc3/opentogethertube:latest
119119
- name: Push to Dockerhub
120120
run: docker push dyc3/opentogethertube:latest
121-
deploy-fly:
121+
122+
deploy-fly-staging-monolith:
123+
runs-on: ubuntu-latest
124+
name: Deploy on fly.io
125+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
126+
needs: [test, lint]
127+
steps:
128+
- uses: actions/checkout@v3
129+
- uses: superfly/flyctl-actions/setup-flyctl@master
130+
- run: flyctl deploy --config deploy/fly.staging.monolith.toml --remote-only
131+
env:
132+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
133+
deploy-fly-staging-balancer:
134+
runs-on: ubuntu-latest
135+
name: Deploy on fly.io
136+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
137+
needs: [test, lint]
138+
steps:
139+
- uses: actions/checkout@v3
140+
- uses: superfly/flyctl-actions/setup-flyctl@master
141+
- run: flyctl deploy --config deploy/fly.staging.balancer.toml --remote-only
142+
env:
143+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
144+
145+
deploy-fly-prod:
122146
runs-on: ubuntu-latest
123147
name: Deploy on fly.io
124148
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)