Merge branch 'sh-lock-down-ruby-images' into 'master'

Lock Ruby builds to using Debian stretch

Closes #20

See merge request gitlab-org/gitlab-build-images!98
This commit is contained in:
Stan Hu 2018-05-29 22:25:26 +00:00
commit 202de09d92

View file

@ -121,6 +121,12 @@ function print_terraform_args() {
function parse_arguments() {
read base
read base_version
# Lock Ruby to Debian stretch
case "$base" in
ruby) base_version="$base_version-stretch" ;;
esac
printf -- "-f Dockerfile.custom " "$base"
printf -- "--build-arg CUSTOM_IMAGE_NAME=%s " "$base"
printf -- "--build-arg CUSTOM_IMAGE_VERSION=%s " "$base_version"