Skip to content

Commit 57ebd40

Browse files
committed
Add current files
0 parents  commit 57ebd40

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

.github/workflows/example.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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"]

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

0 commit comments

Comments
 (0)