Generate CI/CD and more for Elixir apps

almirsarajcic

almirsarajcic

Created 7 months ago

Do you need:

  • CI/CD pipeline running in GitHub Actions
  • staging and production environment on Fly.io
  • PR review (preview) apps on Fly.io

You can create them yourself by following the steps from our Elixir DevOps blog post series, or you can make the pro move and use our generator.

mix hex.repo add codecodeship https://hex.codecodeship.com/api/repo \
  --fetch-public-key SHA256:5hyUvvnGT45CntYCrHAOO3tn94l1xz8fUlyQS7qDhxg \
  --auth-key [YOUR AUTH KEY]

mix archive.install hex optimum_gen_infra --repo codecodeship

mix optimum.gen.infra \
  --ecto \
  --elixir-version 1.17.3 \
  --fly-app-prefix elixirdrops \
  --github-url https://github.com/optimumBA/elixir_drops \
  --node-version 20.18.0 \
  --otp-version 27.1.2 \
  --phoenix

You’ll get extra:

  • AppSignal configuration
  • health check
  • mise setup

Read more about it here: https://optimum.ba/blog/optimum-infrastructure-generator.

If you have any questions, contact us at tools@optimum.ba.