Skip to content

Commit 0fad627

Browse files
committed
Pin Rubygems and Bundler
1 parent f38ca6d commit 0fad627

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
runs-on: ubuntu-20.04
4343
container: ruby:2.7
4444
steps:
45+
- name: Update Rubygems and Bundler
46+
run: |
47+
gem update --system 3.3.26
48+
gem install bundler -v '~> 2.3.26'
4549
- name: Checkout
4650
uses: actions/checkout@v2
4751
- name: Bundle
@@ -231,6 +235,10 @@ jobs:
231235
if: ${{ matrix.libc == 'gnu' && matrix.platform != 'amd64' }}
232236
run: |
233237
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apt-get install -y binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
238+
- name: Update Rubygems and Bundler
239+
run: |
240+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} gem update --system 3.3.26
241+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} gem install bundler -v '~> 2.3.26'
234242
- name: Checkout
235243
uses: actions/checkout@v2
236244
- name: Bundle
@@ -318,6 +326,10 @@ jobs:
318326
- name: Install Alpine system dependencies
319327
if: ${{ matrix.container.libc == 'musl' }}
320328
run: apk add --no-cache build-base linux-headers bash python3 git curl tar
329+
- name: Update Rubygems and Bundler
330+
run: |
331+
gem update --system 3.3.26
332+
gem install bundler -v '~> 2.3.26'
321333
- name: Set metadata
322334
id: set-metadata
323335
run: |
@@ -435,6 +447,10 @@ jobs:
435447
- name: Install Alpine system dependencies
436448
if: ${{ matrix.libc == 'musl' }}
437449
run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apk add --no-cache build-base git libstdc++
450+
- name: Update Rubygems and Bundler
451+
run: |
452+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} gem update --system 3.3.26
453+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} gem install bundler -v '~> 2.3.26'
438454
- name: Set metadata
439455
id: set-metadata
440456
run: |

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ RUN test ! -f /etc/alpine-release || apk add --no-cache build-base bash python3
55
RUN test -f /etc/alpine-release || (apt-get update && apt-get install -y ccache)
66
ENV CCACHE_DIR=/ccache
77

8+
RUN gem update --system 3.3.26 && gem install bundler -v '~> 2.3.26'
9+
810
RUN mkdir -p /code
911
WORKDIR /code
1012

0 commit comments

Comments
 (0)