Add a way to pin RubyGems and pin to 3.2

This commit is contained in:
Lin Jen-Shin 2022-06-21 22:59:02 +08:00
parent 44254ea95d
commit a00159f06f
5 changed files with 25 additions and 2 deletions

View file

@ -17,8 +17,9 @@ ENV PATH $PATH:/usr/local/go/bin
ARG RUBY_VERSION
ARG RUBY_DOWNLOAD_SHA256
ARG BUNDLER_VERSION
ARG RUBYGEMS_VERSION
RUN if [ -n "$RUBY_VERSION" ]; then /scripts/install-ruby $RUBY_VERSION $RUBY_DOWNLOAD_SHA256 $BUNDLER_VERSION && ruby --version; fi
RUN if [ -n "$RUBY_VERSION" ]; then /scripts/install-ruby "$RUBY_VERSION" "$RUBY_DOWNLOAD_SHA256" "$BUNDLER_VERSION" "$RUBYGEMS_VERSION" && ruby --version; fi
# Git
ARG GIT_VERSION
@ -107,6 +108,7 @@ RUN /scripts/validate-binaries-architecture
# Set as env variables all versions configured
ENV RUBY_VERSION=${RUBY_VERSION} \
RUBYGEMS_VERSION=${RUBYGEMS_VERSION} \
GIT_VERSION=${GIT_VERSION} \
CHROME_VERSION=${CHROME_VERSION} \
NODE_VERSION=${NODE_INSTALL_VERSION} \