diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml new file mode 100644 index 0000000..c2caa68 --- /dev/null +++ b/.github/workflows/fly.yml @@ -0,0 +1,15 @@ +name: Fly Deploy +on: + push: + branches: + - main +jobs: + deploy: + name: Deploy app + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/elixir_buildpack.config b/elixir_buildpack.config new file mode 100644 index 0000000..b80b421 --- /dev/null +++ b/elixir_buildpack.config @@ -0,0 +1,28 @@ +# Erlang version +erlang_version=24.1 + +# Elixir version +elixir_version=1.12.3 + +# Always rebuild from scratch on every deploy? +always_rebuild=false + +# Create a release using `mix release`? (requires Elixir 1.9) +release=true + +# A command to run right before fetching dependencies +hook_pre_fetch_dependencies="pwd" + +# A command to run right before compiling the app (after elixir, .etc) +hook_pre_compile="pwd" + +hook_compile="mix compile --force --warnings-as-errors" + +# A command to run right after compiling the app +hook_post_compile="pwd" + +# Set the path the app is run from +runtime_path=/app + +# Enable or disable additional test arguments +test_args="--cover" \ No newline at end of file