0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHub Actions のコンテナ内にSSH接続してデバッグする方法

Last updated at Posted at 2023-09-10

Snippetとして残しておく。

.github/workflows/ci.yamlに以下のjobを追加する。

name: CI
on: [push]
jobs:
  debug:
    strategy:
      matrix:
        os: [ubuntu-latest]
        ruby: ['3.1']
    runs-on: ${{ matrix.os }}
    steps:
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - uses: actions/checkout@v3
      - name: Setup tmate session
        uses: mxschmitt/action-tmate@v3

If no user has connected within 10 minutes after the post-job step started, it will terminate the tmate session and quit gracefully.

とのこと。

Ref.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?