Skip to content

Commit 39c1c85

Browse files
committed
Includes Scalingo to choose erlangs build urls
1 parent 7de21d0 commit 39c1c85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)