-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |