change workflow container image

This commit is contained in:
Junya Morioka
2025-05-17 12:08:23 +09:00
parent aa994ec6e5
commit abee9c0ecc
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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"]