Add CD for router-1, router-2, indexer, comparer
This commit is contained in:
parent
ae2f5bfc5a
commit
5f2b655506
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
name: Deploy to Fly
|
||||
name: Deploy Stage Router to Fly
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -9,7 +9,7 @@ env:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -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
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue