[前][次][番号順一覧][スレッド一覧]

ruby-changes:67232

From: Jun <ko1@a...>
Date: Tue, 24 Aug 2021 17:55:39 +0900 (JST)
Subject: [ruby-changes:67232] 2be84afea5 (master): .github/workflows/compilers.yml: Specify a container running user as root.

https://git.ruby-lang.org/ruby.git/commit/?id=2be84afea5

From 2be84afea5167343e66be85b4cd7945533e4a7b5 Mon Sep 17 00:00:00 2001
From: Jun Aruga <jaruga@r...>
Date: Mon, 23 Aug 2021 21:16:31 +0200
Subject: .github/workflows/compilers.yml: Specify a container running user as
 root.

Explicitly specify the root as a user to run tests in the containers.

Coming new ruby/ruby-ci-image images are required to run the container as
a regular user by default, while the root user is required to run the
compilers.yml. Add `id` command to print the user info.

Co-authored-by: fedor <fedor@c...>
---
 .github/workflows/compilers.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index a5c1e72..2819a04 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -168,8 +168,12 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/compilers.yml#L168
 
     name: ${{ matrix.entry.name }}
     runs-on: ubuntu-latest
-    container: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || 'clang-14' }}
+    container:
+      image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || 'clang-14' }}
+      options: --user root
     steps:
+      - run: id
+        working-directory:
       - run: mkdir build
         working-directory:
       - name: setenv
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]