Add fly deployment action

This commit is contained in:
Riordan Panayides 2023-11-28 03:06:39 +00:00
parent 3338f638d5
commit f491da9573
2 changed files with 22 additions and 1 deletions

21
.github/workflows/deploy-fly.yml vendored Normal file
View File

@ -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

View File

@ -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"