Skip to content

Commit

Permalink
feat: gigalixir-24 and heroku-24 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gigatim committed May 1, 2024
1 parent 378538d commit ecc29c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
* Erlang - Prebuilt packages (17.5, 17.4, etc)
* The full list of prebuilt packages can be found here:
* gigalixir-20 or heroku-20 stacks: https://builds.hex.pm/builds/otp/ubuntu-20.04/builds.txt
* heroku-22 stacks: https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt
* gigalixir-22 or heroku-22 stacks: https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt
* gigalixir-24 or heroku-24 stacks: https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt
* All other stacks: https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
* Elixir - Prebuilt releases (1.0.4, 1.0.3, etc) or prebuilt branches (master, v1.7, etc)
* The full list of releases can be found here: https://github.com/elixir-lang/elixir/releases
Expand Down
7 changes: 7 additions & 0 deletions lib/canonical_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ erlang_builds_url() {
"heroku-22")
erlang_builds_url="https://builds.hex.pm/builds/otp/ubuntu-22.04"
;;
"heroku-24")
erlang_builds_url="https://builds.hex.pm/builds/otp/ubuntu-24.04"
;;
*)
erlang_builds_url="https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14"
;;
Expand All @@ -30,6 +33,10 @@ fetch_erlang_versions() {
url="https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt"
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
;;
"heroku-24")
url="https://builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt"
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
;;
*)
url="https://raw.githubusercontent.com/HashNuke/heroku-buildpack-elixir-otp-builds/master/otp-versions"
curl -s "$url"
Expand Down

0 comments on commit ecc29c6

Please sign in to comment.