|
3 | 3 | set -euxfo pipefail; |
4 | 4 |
|
5 | 5 | case "${1:-x}" in |
| 6 | + 9x) declare -r series="9x" ;; |
6 | 7 | 8x_2) declare -r series="8x_2" ;; |
7 | 8 | 8x_1) declare -r series="8x_1" ;; |
8 | 9 | 8x) declare -r series="8x" ;; |
9 | 10 | 7x) declare -r series="7x" ;; |
10 | 11 | 6x) declare -r series="6x" ;; |
11 | 12 | snapshot) declare -r series="snapshot" ;; |
12 | 13 |
|
13 | | - *) echo "usage: $0 [6x|7x|8x|8x_1|8x_2|snapshot]" |
| 14 | + *) echo "usage: $0 [6x|7x|8x|8x_1|8x_2|9x|snapshot]" |
14 | 15 | exit 1 |
15 | 16 | ;; |
16 | 17 | esac |
@@ -58,6 +59,18 @@ build_snapshot () { |
58 | 59 | build "racket" "${full_installer}" "${version}" "${version}-full"; |
59 | 60 | } |
60 | 61 |
|
| 62 | +build_9x () { |
| 63 | + declare -r version="${1}"; |
| 64 | + |
| 65 | + declare -r installer_path="racket-minimal-${version}-x86_64-linux-natipkg.sh"; |
| 66 | + declare -r installer=$(installer_url "${version}" "${installer_path}") || exit "${?}"; |
| 67 | + build "racket" "${installer}" "${version}" "${version}"; |
| 68 | + |
| 69 | + declare -r full_installer_path="racket-${version}-x86_64-linux-natipkg.sh"; |
| 70 | + declare -r full_installer=$(installer_url "${version}" "${full_installer_path}") || exit "${?}"; |
| 71 | + build "racket" "${full_installer}" "${version}" "${version}-full"; |
| 72 | +}; |
| 73 | + |
61 | 74 | build_8x () { |
62 | 75 | declare -r version="${1}"; |
63 | 76 |
|
@@ -130,6 +143,12 @@ tag_latest () { |
130 | 143 | docker image tag "${repository}:${LATEST_RACKET_VERSION}" "${repository}:latest"; |
131 | 144 | }; |
132 | 145 |
|
| 146 | +build_all_9x () { |
| 147 | + foreach build_9x "9.0"; |
| 148 | + tag_latest "${DOCKER_REPOSITORY}"; |
| 149 | + tag_latest "${SECONDARY_DOCKER_REPOSITORY}"; |
| 150 | +} |
| 151 | + |
133 | 152 | # The 8x series is split into two to avoid running into storage limits in CI. |
134 | 153 | build_8x_2 () { |
135 | 154 | foreach build_8x "8.10" "8.11" "8.11.1" "8.12" "8.13" "8.14" "8.15" "8.16" "8.17" "8.18"; |
@@ -158,6 +177,7 @@ build_all_6x () { |
158 | 177 | build_base; |
159 | 178 |
|
160 | 179 | case "$series" in |
| 180 | + 9x) build_all_9x ;; |
161 | 181 | 8x_2) build_8x_2 ;; |
162 | 182 | 8x_1) build_8x_1 ;; |
163 | 183 | 8x) build_all_8x ;; |
|
0 commit comments