From abee9c0ecc365d202b13024a485c0dc9a6483dcc Mon Sep 17 00:00:00 2001 From: Junya Morioka Date: Sat, 17 May 2025 12:08:23 +0900 Subject: [PATCH] change workflow container image --- .github/workflows/test-self-hosted.yml | 4 ++-- self-hosted-runner/Dockerfile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-self-hosted.yml b/.github/workflows/test-self-hosted.yml index c79f7e3..4c18a30 100644 --- a/.github/workflows/test-self-hosted.yml +++ b/.github/workflows/test-self-hosted.yml @@ -8,7 +8,7 @@ jobs: - self-hosted timeout-minutes: 10 container: - image: docker:dind + image: ghcr.io/actions/actions-runner:latest steps: - run: ls - run: pwd @@ -26,7 +26,7 @@ jobs: # https://developer.nvidia.com/cuda-toolkit-archive cuda-version: ["12.8.1"] container: - image: ubuntu:22.04 + image: ghcr.io/actions/actions-runner steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/self-hosted-runner/Dockerfile b/self-hosted-runner/Dockerfile index 63bff4c..cc08e75 100644 --- a/self-hosted-runner/Dockerfile +++ b/self-hosted-runner/Dockerfile @@ -44,8 +44,7 @@ RUN echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers USER runner WORKDIR /home/runner -RUN mkdir -p /home/runner/actions-runner \ - && curl -fsSL -o actions-runner.tar.gz -L "https://github.com/actions/runner/releases/download/v${GH_RUNNER_VERSION}/actions-runner-linux-${TARGET_ARCH}-${GH_RUNNER_VERSION}.tar.gz" \ +RUN curl -fsSL -o actions-runner.tar.gz -L "https://github.com/actions/runner/releases/download/v${GH_RUNNER_VERSION}/actions-runner-linux-${TARGET_ARCH}-${GH_RUNNER_VERSION}.tar.gz" \ && tar xf actions-runner.tar.gz \ && rm actions-runner.tar.gz \ && sudo ./bin/installdependencies.sh \ @@ -56,6 +55,7 @@ RUN mkdir -p /home/runner/actions-runner \ --name $RUNNER_NAME \ --runnergroup $RUNNER_GROUP \ --labels "${RUNNER_LABELS},${TARGET_ARCH}" \ - --work /home/runner/actions-runner + --work /home/runner/actions-runner \ + --replace CMD ["./run.sh"] \ No newline at end of file