File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 4444 RUBYGEM_PUPPET_METADATA=${{ matrix.rubygem_puppet_metadata }}
4545 RUBYGEM_MODULESYNC=${{ matrix.rubygem_modulesync }}
4646 RUBYGEM_RUBOCOP_PERFORMANCE=${{ matrix.rubygem_rubocop_performance }}
47+ RUBYGEM_BUNDLER=${{ matrix.rubygem_bundler }}
4748 build_arch : linux/amd64,linux/arm64
4849 docker_username : voxpupulibot
4950 docker_password : ${{ secrets.DOCKERHUB_BOT_PASSWORD }}
Original file line number Diff line number Diff line change 4949 RUBYGEM_PUPPET_METADATA=${{ matrix.rubygem_puppet_metadata }}
5050 RUBYGEM_OVERCOMMIT=${{ matrix.rubygem_overcommit }}
5151 RUBYGEM_MODULESYNC=${{ matrix.rubygem_modulesync }}
52+ RUBYGEM_BUNDLER=${{ matrix.rubygem_bundler }}
5253
5354 - name : Login to Docker Hub
5455 uses : docker/login-action@v3
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ ENV RUBYGEM_RA10KE=${RUBYGEM_RA10KE:-3.1.0}
4141ARG RUBYGEM_RUBOCOP_PERFORMANCE
4242ENV RUBYGEM_RUBOCOP_PERFORMANCE=${RUBYGEM_RUBOCOP_PERFORMANCE:-1.21.1}
4343
44+ ARG RUBYGEM_BUNDLER
45+ ENV RUBYGEM_BUNDLER=${RUBYGEM_BUNDLER:-2.5.18}
46+
4447COPY voxbox/Gemfile /
4548COPY voxbox/Rakefile /
4649COPY Dockerfile /
@@ -50,6 +53,9 @@ RUN apk update \
5053 && apk add --no-cache --update alpine-sdk \
5154 && apk add --no-cache --update yamllint \
5255 && apk add --no-cache --update jq \
56+ && rm -rf /usr/local/lib/ruby/gems/*/gems/bundler-* \
57+ && rm -rf /usr/local/lib/ruby/gems/*/specifications/default/bundler-*.gemspec \
58+ && gem install bundler -v ${RUBYGEM_BUNDLER} \
5359 && bundle config set path.system true \
5460 && bundle config set jobs $(nproc) \
5561 && bundle install --gemfile=/Gemfile \
Original file line number Diff line number Diff line change 1313 "rubygem_modulesync" : " 3.2.0" ,
1414 "rubygem_r10k" : " 4.1.0" ,
1515 "rubygem_ra10ke" : " 3.1.0" ,
16- "rubygem_rubocop_performance" : " 1.21.1"
16+ "rubygem_rubocop_performance" : " 1.21.1" ,
17+ "rubygem_bundler" : " 2.4.22"
1718 },
1819 {
1920 "puppet_release" : 8 ,
2829 "rubygem_modulesync" : " 3.2.0" ,
2930 "rubygem_r10k" : " 4.1.0" ,
3031 "rubygem_ra10ke" : " 3.1.0" ,
31- "rubygem_rubocop_performance" : " 1.21.1"
32+ "rubygem_rubocop_performance" : " 1.21.1" ,
33+ "rubygem_bundler" : " 2.5.18"
3234 }
3335 ]
3436}
You can’t perform that action at this time.
0 commit comments