mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 10:32:56 +01:00
Add option to pass custom bundler version
This commit is contained in:
parent
34bf5cf7ee
commit
1f15ec8684
5 changed files with 24 additions and 2 deletions
|
|
@ -215,6 +215,20 @@ function print_ruby_args() {
|
|||
printf -- "--build-arg RUBY_DOWNLOAD_SHA256=%s " "$RUBY_DOWNLOAD_SHA256"
|
||||
}
|
||||
|
||||
function print_bundler_args() {
|
||||
case "$1" in
|
||||
2.1)
|
||||
BUNDLER_VERSION=2.1.4
|
||||
;;
|
||||
2.3)
|
||||
BUNDLER_VERSION=2.3.12
|
||||
;;
|
||||
*) echo "Unknown bundler version $1"; exit 1;
|
||||
esac
|
||||
|
||||
printf -- "--build-arg BUNDLER_VERSION=%s " "$BUNDLER_VERSION"
|
||||
}
|
||||
|
||||
function print_gcloud_args() {
|
||||
case "$1" in
|
||||
383)
|
||||
|
|
@ -252,6 +266,7 @@ function parse_arguments() {
|
|||
case "$tool" in
|
||||
DEBIAN) CUSTOM_IMAGE_VERSION=$version ;;
|
||||
RUBY) print_ruby_args $version ;;
|
||||
BUNDLER) print_bundler_args $version ;;
|
||||
GOLANG) print_golang_args $version ;;
|
||||
CHROME) print_chrome_args $version ;;
|
||||
DOCKER) print_docker_args $version ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue