Add fly deployment action
This commit is contained in:
parent
3338f638d5
commit
f491da9573
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
run: flyctl deploy --remote-only
|
|
@ -20,4 +20,4 @@ FROM debian:bullseye-slim as run
|
|||
RUN apt-get update && apt-get -y install ca-certificates libc6
|
||||
COPY --from=build /app/target/release/grpc_banking_transactions_notifications /usr/local/bin/
|
||||
|
||||
CMD grpc_banking_transactions_notifications --grpc-address "$GEYSER_GRPC_ADDRESS"
|
||||
CMD grpc_banking_transactions_notifications --grpc-address "$GEYSER_GRPC_ADDRESS" --rpc-url "$RPC_URL"
|
||||
|
|
Loading…
Reference in New Issue