Skip to content

Commit

Permalink
chore: add ci/cd settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed Nov 12, 2023
1 parent 1675351 commit 29551cf
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/fly.yml
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 }}
28 changes: 28 additions & 0 deletions elixir_buildpack.config
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"

0 comments on commit 29551cf

Please sign in to comment.