Skip to content

Commit

Permalink
Add support for Scalingo-20
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittstruck committed Jul 3, 2023
1 parent 378538d commit 7c053a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

* 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
* gigalixir-20, heroku-20 or scalingo-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
* 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)
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"
;;
"scalingo-20")
erlang_builds_url="https://repo.hex.pm/builds/otp/ubuntu-20.04"
;;
*)
erlang_builds_url="https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14"
;;
Expand All @@ -26,6 +29,10 @@ fetch_erlang_versions() {
url="https://builds.hex.pm/builds/otp/ubuntu-20.04/builds.txt"
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
;;
"scalingo-20")
url="https://repo.hex.pm/builds/otp/ubuntu-20.04/builds.txt"
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
;;
"heroku-22")
url="https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt"
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
Expand Down

0 comments on commit 7c053a6

Please sign in to comment.