File tree Expand file tree Collapse file tree 4 files changed +51
-0
lines changed
Expand file tree Collapse file tree 4 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Example
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ echo-foo :
8+ runs-on : self-hosted
9+ steps :
10+ - run : echo "$FOO"
Original file line number Diff line number Diff line change 1+ .env
Original file line number Diff line number Diff line change 1+ FROM arm64v8/ubuntu:25.04
2+
3+ ARG VERSION=2.328.0
4+ ARG OS=linux
5+ ARG ARCH=arm64
6+ ARG PACKAGE_URL="https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${OS}-${ARCH}-${VERSION}.tar.gz"
7+ ARG PACKAGE_CHECKSUM="b801b9809c4d9301932bccadf57ca13533073b2aa9fa9b8e625a8db905b5d8eb"
8+ RUN echo "Downloading ${PACKAGE_URL}" >&2
9+
10+
11+ RUN apt-get update && apt-get install -y \
12+ bash \
13+ curl \
14+ sudo \
15+ git \
16+ libicu-dev \
17+ && rm -rf /var/lib/apt/lists/*
18+
19+ RUN useradd -m -d /home/runner runner
20+ WORKDIR /home/runner
21+ RUN curl -o runner.tar.gz \
22+ -L https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${OS}-${ARCH}-${VERSION}.tar.gz
23+ RUN echo "${PACKAGE_CHECKSUM} runner.tar.gz" | shasum -a 256 -c
24+ RUN tar xzf ./runner.tar.gz
25+
26+ RUN ./bin/installdependencies.sh
27+
28+ COPY --chmod=755 entrypoint.sh ./
29+
30+ USER runner
31+ ENTRYPOINT ["/home/runner/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ ./config.sh --unattended \
6+ --url " ${RUNNER_URL:? Must be set} " \
7+ --token " ${RUNNER_TOKEN:? Must be set} "
8+
9+ ./run.sh
You can’t perform that action at this time.
0 commit comments