@@ -8,10 +8,12 @@ function join { local IFS="$1"; shift; echo "$*"; }
8
8
# $2 = erlang version
9
9
# $3 = elixir version
10
10
# $4 = saved elixir version
11
+ # $5 = ubuntu version
11
12
function build {
12
13
rm -rf _build src/mix_safe_erl_term.erl
13
- docker run -v $PWD :/hex hexpm/elixir:${3} -erlang-${2} -ubuntu-xenial-20200212 sh -c " cd /hex && MIX_ENV=prod mix archive.build -o hex.ez"
14
- docker run -v $PWD :/hex hexpm/elixir:${3} -erlang-${2} -ubuntu-xenial-20200212 sh -c " cd /hex && MIX_ENV=prod mix archive.build -o hex-${1} .ez"
14
+ docker run -v $PWD :/hex hexpm/elixir:${3} -erlang-${2} -ubuntu-${5} sh -c " mix local.hex --force"
15
+ docker run -v $PWD :/hex hexpm/elixir:${3} -erlang-${2} -ubuntu-${5} sh -c " cd /hex && mix local.hex --force && MIX_ENV=prod mix archive.build -o hex.ez"
16
+ docker run -v $PWD :/hex hexpm/elixir:${3} -erlang-${2} -ubuntu-${5} sh -c " cd /hex && mix local.hex --force && MIX_ENV=prod mix archive.build -o hex-${1} .ez"
15
17
cp hex.ez hex-elixir-${4} .ez
16
18
cp hex-${1} .ez hex-${1} -elixir-${4} .ez
17
19
}
@@ -53,35 +55,24 @@ function upload {
53
55
s3up " hex-${1} -elixir-${elixir} .ez" " ${elixir} /hex-${1} .ez"
54
56
done
55
57
56
- # special case 1.0.0 upload
57
- s3up hex-elixir-1.0.0.ez hex.ez
58
-
59
58
s3up hex-1.x.csv hex-1.x.csv
60
59
s3up hex-1.x.csv.signed hex-1.x.csv.signed
61
60
}
62
61
63
62
hex_version=$1
64
63
65
64
# UPDATE THIS FOR EVERY RELEASE
66
- build ${hex_version} 22.3 1.13.0 1.13.0
67
- build ${hex_version} 22.3 1.12.3 1.12.0
68
- build ${hex_version} 21.3 1.11.4 1.11.0
69
- build ${hex_version} 21.3 1.10.4 1.10.0
70
- build ${hex_version} 20.3 1.9.4 1.9.0
71
- build ${hex_version} 20.3 1.8.2 1.8.0
72
- build ${hex_version} 19.3 1.7.4 1.7.0
73
- build ${hex_version} 19.3 1.6.6 1.6.0
74
- build ${hex_version} 18.3 1.5.3 1.5.0
75
- build ${hex_version} 18.3 1.4.5 1.4.0
76
- build ${hex_version} 18.3 1.3.4 1.3.0
77
- build ${hex_version} 18.3 1.2.6 1.2.0
78
- build ${hex_version} 17.5 1.1.1 1.1.0
79
- build ${hex_version} 17.5 1.0.5 1.0.0
65
+ build ${hex_version} 23.3 1.14.1 1.14.0 xenial-20210114
66
+ build ${hex_version} 22.3 1.13.4 1.13.0 xenial-20200212
67
+ build ${hex_version} 22.3 1.12.3 1.12.0 xenial-20200212
68
+ build ${hex_version} 21.3 1.11.4 1.11.0 xenial-20200212
69
+ build ${hex_version} 21.3 1.10.4 1.10.0 xenial-20200212
70
+ build ${hex_version} 20.3 1.9.4 1.9.0 xenial-20200212
71
+ build ${hex_version} 20.3 1.8.2 1.8.0 xenial-20200212
72
+ build ${hex_version} 19.3 1.7.4 1.7.0 xenial-20200212
73
+ build ${hex_version} 19.3 1.6.6 1.6.0 xenial-20200212
74
+ build ${hex_version} 18.3 1.5.3 1.5.0 xenial-20200212
80
75
rm -rf _build
81
76
82
- hex_csv " ${hex_version} " 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0
83
- upload " ${hex_version} " 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0
84
-
85
- pushd " ../hexpm-ops"
86
- scripts/kubeexec hexpm --prod -- bin/hexpm eval " Hexpm.ReleaseTasks.script([\" add_install.exs\" ,\" ${hex_version} \" ,\" 1.13.0\" ,\" 1.12.0\" ,\" 1.11.0\" ,\" 1.10.0\" ,\" 1.9.0\" ,\" 1.8.0\" ,\" 1.7.0\" ,\" 1.6.0\" ,\" 1.5.0\" ,\" 1.4.0\" ,\" 1.3.0\" ,\" 1.2.0\" ,\" 1.1.0\" ,\" 1.0.0\" ])"
87
- popd
77
+ hex_csv " ${hex_version} " 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0
78
+ upload " ${hex_version} " 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0
0 commit comments