【Github】Github Actions ~ Self-hosted runners / 複数リポジトリ設定 ~

◾️はじめに

小ネタ。

Github Actions の Self-hosted runners で一台の物理マシンに対して
別Githubリポジトリを相乗りする話が出てて、どうやるかがわかったのでメモ。

目次

【1】一台のSelf-hosted runnersに複数Githubリポジトリを使うには
【2】設定例

【1】一台のSelf-hosted runnersに複数Githubリポジトリを使うには

https://qiita.com/Tom3/items/c584220a782ccb868e09

に書かれているとおりで、、、

* 別ディレクトリにself-hosted runner をインストールする(そんだけ)

【2】設定例

https://dk521123.hatenablog.com/entry/2023/12/18/204119

でやった設定
〜〜〜〜
# Create a folder
$ mkdir actions-runner && cd actions-runner

# Download the latest runner package
$ curl -o actions-runner-linux-x64-2.311.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-linux-x64-2.311.0.tar.gz

・・・
〜〜〜〜
とすると、別ディレクトリ名(e.g. actions-runner-2)で設定して
あとは同じ。

参考文献

https://qiita.com/Tom3/items/c584220a782ccb868e09

関連記事

Github Actions ~ Self-hosted runners / 入門編 ~
https://dk521123.hatenablog.com/entry/2023/12/18/204119
Github Actions ~ Self-hosted runners / あれこれ編 ~
https://dk521123.hatenablog.com/entry/2024/02/07/002736
Github Actions ~ Self-hosted runners / 自動更新OFF ~   https://dk521123.hatenablog.com/entry/2025/01/08/201947
Github Actions ~ Self-hosted runners / 設定関連 ~
https://dk521123.hatenablog.com/entry/2025/01/09/132401
Github Actions ~ Self-hosted runners で Offline だった場合の対応について考える ~
https://dk521123.hatenablog.com/entry/2024/12/31/184145