Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/fly-prod-deploy-router-comparer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy Prod Comparer to Fly

on:
push:
tags:
- 'production/comparer-*'

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

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

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

- name: Deploy
run: flyctl deploy -c fly-comparer.toml -a router-comparer
22 changes: 22 additions & 0 deletions .github/fly-prod-deploy-router-indexer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy Prod Indexer to Fly

on:
push:
tags:
- 'production/indexer-*'

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

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

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

- name: Deploy
run: flyctl deploy -c fly-indexer.toml -a router-indexer
22 changes: 22 additions & 0 deletions .github/fly-prod-deploy-router.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy Prod Router to Fly

on:
push:
tags:
- 'production/router-*'

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

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

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

- name: Deploy
run: flyctl deploy -c fly.toml -a router-2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Fly
name: Deploy Stage Router to Fly

on:
push:
Expand All @@ -9,7 +9,7 @@ env:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -18,4 +18,4 @@ jobs:
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy
run: flyctl deploy -c fly.toml -a autobahn-router-1
run: flyctl deploy -c fly.toml -a router-1
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ Build router with feature `tokio-console` and `RUSTFLAGS="--cfg tokio_unstable"`

And use the `tokio-console` crate to display running tasks

## Trigger automatic build and deployment to fly.io

```bash
git tag production/router-202409231509
git tag production/indexer-202409231509
git tag production/comparer-202409231509
# push tag(s)
```

## License

Autobahn is published under GNU Affero General Public License v3.0.
Expand Down