Skip to content

Commit

Permalink
Deploy dev from main, prod from production
Browse files Browse the repository at this point in the history
  • Loading branch information
riordanp committed Dec 1, 2023
1 parent 0b1c1de commit c1987b1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/fly-deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to Fly

on:
push:
branches: [main]

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Fly
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy lite-rpc
run: flyctl deploy -c cd/lite-rpc-staging.toml --remote-only

# - name: Deploy quic-forward-proxy
# run: flyctl deploy -c cd/quic-forward-proxy.toml --remote-only
2 changes: 1 addition & 1 deletion .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to Fly

on:
push:
branches: [main]
branches: [production]

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions cd/lite-rpc-staging.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#
# experiment with Quic Proxy
# LiteRPC entrypoint will be served under https://api.mngo.cloud/lite-rpc-staging/v1/
#

Expand All @@ -12,7 +11,7 @@ primary_region = "nrt"
dockerfile = "../Dockerfile"

[experimental]
cmd = ["sh", "-c", "lite-rpc --rpc-addr $RPC_URL --ws-addr $WS_URL --quic-proxy-addr $QUIC_PROXY_ADDR"]
cmd = ["sh", "-c", "lite-rpc --rpc-addr $RPC_URL --ws-addr $WS_URL"]

[env]
PORT_HTTP = "8890"
Expand Down

0 comments on commit c1987b1

Please sign in to comment.