Skip to content

Commit 6dc9a8c

Browse files
committed
Add support for Scalingo-20
1 parent 7de21d0 commit 6dc9a8c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
* Erlang - Prebuilt packages (17.5, 17.4, etc)
1717
* The full list of prebuilt packages can be found here:
18-
* gigalixir-20 or heroku-20 stacks: https://repo.hex.pm/builds/otp/ubuntu-20.04/builds.txt
18+
* gigalixir-20, heroku-20 or scalingo-20 stacks: https://repo.hex.pm/builds/otp/ubuntu-20.04/builds.txt
1919
* heroku-22 stacks: https://repo.hex.pm/builds/otp/ubuntu-22.04/builds.txt
2020
* All other stacks: https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
2121
* Elixir - Prebuilt releases (1.0.4, 1.0.3, etc) or prebuilt branches (master, v1.7, etc)

lib/canonical_version.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ erlang_builds_url() {
88
"heroku-22")
99
erlang_builds_url="https://repo.hex.pm/builds/otp/ubuntu-22.04"
1010
;;
11+
"scalingo-20")
12+
erlang_builds_url="https://repo.hex.pm/builds/otp/ubuntu-20.04"
13+
;;
1114
*)
1215
erlang_builds_url="https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14"
1316
;;
@@ -26,6 +29,10 @@ fetch_erlang_versions() {
2629
url="https://repo.hex.pm/builds/otp/ubuntu-20.04/builds.txt"
2730
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
2831
;;
32+
"scalingo-20")
33+
url="https://repo.hex.pm/builds/otp/ubuntu-20.04/builds.txt"
34+
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'
35+
;;
2936
"heroku-22")
3037
url="https://repo.hex.pm/builds/otp/ubuntu-22.04/builds.txt"
3138
curl -s "$url" | awk '/^OTP-([0-9.]+ )/ {print substr($1,5)}'

0 commit comments

Comments
 (0)