Skip to content

Commit

Permalink
Merge pull request #96 from ruby/noble-useradd
Browse files Browse the repository at this point in the history
Fix build error with Noble image
  • Loading branch information
hsbt authored Jun 3, 2024
2 parents c8cff95 + 0c9226a commit 1acf465
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
strategy:
matrix:
ubuntu_version:
- noble
- jammy
- focal
- bionic
ruby_version:
- 3.0.6
- 3.1.4
- 3.2.3
- 3.3.0
- 3.0.7
- 3.1.6
- 3.2.4
- 3.3.2

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ RUN set -ex && \
apt-get clean && rm -r /var/lib/apt/lists/*

RUN set -ex && \
useradd -ms /bin/bash ubuntu
if ! (id ubuntu &>/dev/null); then \
useradd -ms /bin/bash ubuntu; \
fi

RUN mkdir -p /usr/local/etc

Expand Down

0 comments on commit 1acf465

Please sign in to comment.