File tree 3 files changed +26
-4
lines changed
3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 9
9
pull_request :
10
10
env :
11
11
IMAGE_NAME : karellen-gha-runner
12
- RUNNER_VERSION : 2.312 .0
12
+ RUNNER_VERSION : 2.313 .0
13
13
14
14
jobs :
15
15
push :
Original file line number Diff line number Diff line change @@ -4,17 +4,21 @@ FROM ubuntu:jammy
4
4
5
5
ARG RUNNER_VERSION
6
6
ARG RUNNER_ARCH
7
- ARG RUNNER_CONTAINER_HOOKS_VERSION=0.5.0
7
+ ARG BUILDX_VERSION=0.12.1
8
+ ARG RUNNER_CONTAINER_HOOKS_VERSION=0.5.1
8
9
9
10
10
11
RUN mkdir -p /home/runner
11
12
WORKDIR /home/runner
12
13
ENV DEBIAN_FRONTEND=noninteractive
13
14
15
+ COPY docker_arch.sh /tmp
16
+
14
17
#
15
18
# Systemd installation
16
19
#
17
- RUN apt-get update && \
20
+ RUN set -x && \
21
+ apt-get update && \
18
22
apt-get install -y --no-install-recommends \
19
23
systemd \
20
24
systemd-sysv \
@@ -34,11 +38,15 @@ RUN apt-get update && \
34
38
lsb-release \
35
39
udev && \
36
40
\
37
- \
41
+ DOCKER_ARCH=$(/tmp/docker_arch.sh ${RUNNER_ARCH}) && \
38
42
# Install Docker \
39
43
curl -fsSL https://get.docker.com -o get-docker.sh && \
40
44
sh get-docker.sh && \
41
45
rm get-docker.sh && \
46
+ mkdir -p /usr/local/lib/docker/cli-plugins && \
47
+ curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \
48
+ "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${DOCKER_ARCH}" && \
49
+ chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx && \
42
50
\
43
51
curl -f -L -o runner.tar.gz https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz \
44
52
&& tar xzf ./runner.tar.gz \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -eEu
2
+
3
+ case " ${RUNNER_ARCH} " in
4
+ [Xx]64)
5
+ echo amd64
6
+ ;;
7
+
8
+ [Aa][Rr][Mm]64)
9
+ echo arm64
10
+ ;;
11
+ * )
12
+ exit 1
13
+ ;;
14
+ esac
You can’t perform that action at this time.
0 commit comments