Add option to pass custom bundler version

This commit is contained in:
Andrejs Cunskis 2022-05-01 19:31:13 +03:00
parent 34bf5cf7ee
commit 1f15ec8684
No known key found for this signature in database
GPG key ID: 87CB75083F227241
5 changed files with 24 additions and 2 deletions

View file

@ -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 ;;