From f3d4552bc3bee52edab2c828f419e36bf5473aea Mon Sep 17 00:00:00 2001 From: benthecarman Date: Tue, 19 Sep 2023 23:58:04 -0500 Subject: [PATCH] CI deploy --- .github/workflows/deploy.yml | 17 +++++++++++++++++ Dockerfile | 2 +- fly.toml | 1 - 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..107db4e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: Fly Deploy + +on: + push: + branches: + - master + +jobs: + staging: + name: Deploy to staging + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@1.4 + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.DEV_FLY_API_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 1f89c66..326562d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.72.0 as builder +FROM rust:1.67 as builder WORKDIR /usr/src/app COPY . . diff --git a/fly.toml b/fly.toml index 9387ede..9bfcda6 100644 --- a/fly.toml +++ b/fly.toml @@ -8,7 +8,6 @@ primary_region = "dfw" [env] RUST_LOG = "info" - MIGRATION_URL = "https://storage-staging.mutinywallet.com/migration" MIGRATION_START_INDEX = "0" MIGRATION_BATCH_SIZE = "100"