Skip to content

Commit 580c690

Browse files
committed
ci: wait until monoliths are done deploying successfully before deploying the balancer
1 parent b0c3bca commit 580c690

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121

122122
deploy-fly-staging-monolith:
123123
runs-on: ubuntu-latest
124-
name: Deploy on fly.io
124+
name: Deploy Monolith on fly.io (staging)
125125
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
126126
needs: [test, lint]
127127
steps:
@@ -132,9 +132,9 @@ jobs:
132132
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
133133
deploy-fly-staging-balancer:
134134
runs-on: ubuntu-latest
135-
name: Deploy on fly.io
135+
name: Deploy Balancer on fly.io (staging)
136136
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
137-
needs: [test, lint]
137+
needs: [test, lint, deploy-fly-staging-monolith]
138138
steps:
139139
- uses: actions/checkout@v3
140140
- uses: superfly/flyctl-actions/setup-flyctl@master
@@ -144,7 +144,7 @@ jobs:
144144

145145
deploy-fly-prod:
146146
runs-on: ubuntu-latest
147-
name: Deploy on fly.io
147+
name: Deploy Monolith on fly.io (prod)
148148
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
149149
needs: [test, lint]
150150
steps:

0 commit comments

Comments
 (0)