Skip to content

Commit b71e3f7

Browse files
committed
Add more ubuntu versions
1 parent 064d289 commit b71e3f7

File tree

7 files changed

+225
-11
lines changed

7 files changed

+225
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,69 @@ on:
66
- develop
77

88
jobs:
9-
deploy_x86:
9+
ubuntu_latest_deploy_x86:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Copy Repo Files
1313
uses: actions/checkout@master
14-
- name: Publish to Hub Registry
15-
uses: elgohr/Publish-Docker-Github-Action@master
16-
with:
17-
name: myoung34/github-runner
18-
username: ${{ secrets.DOCKER_USER }}
19-
password: ${{ secrets.DOCKER_TOKEN }}
20-
deploy_arm:
14+
- name: Build
15+
run: docker build -f Dockerfile.ubuntu -t myoung34/github-runner:latest .
16+
- name: Login
17+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
18+
- name: Push to hub registry
19+
run: docker push myoung34/github-runner:latest
20+
ubuntu_bionic_deploy_x86:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Copy Repo Files
24+
uses: actions/checkout@master
25+
- name: Build
26+
run: docker build -f Dockerfile.ubuntu-bionic -t myoung34/github-runner:ubuntu-bionic .
27+
- name: Login
28+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
29+
- name: Push to hub registry
30+
run: docker push myoung34/github-runner:ubuntu-bionic
31+
ubuntu_xenial_deploy_x86:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Copy Repo Files
35+
uses: actions/checkout@master
36+
- name: Build
37+
run: docker build -f Dockerfile.ubuntu-xenial -t myoung34/github-runner:ubuntu-xenial .
38+
- name: Login
39+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
40+
- name: Push to hub registry
41+
run: docker push myoung34/github-runner:ubuntu-xenial
42+
ubuntu_latest_deploy_arm:
2143
runs-on: self-hosted
2244
steps:
2345
- name: Copy Repo Files
2446
uses: actions/checkout@master
2547
- name: Build
26-
run: docker build -f Dockerfile.arm -t myoung34/github-runner:latest-arm .
48+
run: docker build -f Dockerfile.ubuntu-arm -t myoung34/github-runner:latest-arm .
2749
- name: Login
2850
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
2951
- name: Push to hub registry
3052
run: docker push myoung34/github-runner:latest-arm
53+
ubuntu_bionic_deploy_arm:
54+
runs-on: self-hosted
55+
steps:
56+
- name: Copy Repo Files
57+
uses: actions/checkout@master
58+
- name: Build
59+
run: docker build -f Dockerfile.ubuntu-bionic-arm -t myoung34/github-runner:ubuntu-bionic-arm .
60+
- name: Login
61+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
62+
- name: Push to hub registry
63+
run: docker push myoung34/github-runner:ubuntu-bionic-arm
64+
ubuntu_xenial_deploy_arm:
65+
runs-on: self-hosted
66+
steps:
67+
- name: Copy Repo Files
68+
uses: actions/checkout@master
69+
- name: Build
70+
run: docker build -f Dockerfile.ubuntu-xenial-arm -t myoung34/github-runner:ubuntu-xenial-arm .
71+
- name: Login
72+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
73+
- name: Push to hub registry
74+
run: docker push myoung34/github-runner:ubuntu-xenial-arm

Dockerfile renamed to Dockerfile.ubuntu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:xenial-20191024
1+
FROM ubuntu:bionic
22
LABEL maintainer="3vilpenguin@gmail.com"
33

44
ARG GH_RUNNER_VERSION="2.161.0"

Dockerfile.arm renamed to Dockerfile.ubuntu-arm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:xenial-20191024
1+
FROM ubuntu:bionic
22
LABEL maintainer="3vilpenguin@gmail.com"
33

44
ARG GH_RUNNER_VERSION="2.161.0"

Dockerfile.ubuntu-bionic

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM ubuntu:bionic
2+
LABEL maintainer="3vilpenguin@gmail.com"
3+
4+
ARG GH_RUNNER_VERSION="2.161.0"
5+
6+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
7+
RUN apt-get update && \
8+
apt-get install -y --no-install-recommends \
9+
curl \
10+
tar \
11+
apt-transport-https \
12+
ca-certificates \
13+
sudo \
14+
gnupg-agent \
15+
software-properties-common \
16+
&& rm -rf /var/lib/apt/lists/*
17+
18+
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
19+
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
20+
&& apt-get update \
21+
&& apt-get install -y docker-ce --no-install-recommends \
22+
&& rm -rf /var/lib/apt/lists/*
23+
24+
WORKDIR /actions-runner
25+
RUN curl -O https://githubassets.azureedge.net/runners/${GH_RUNNER_VERSION}/actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
26+
&& tar -zxf actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
27+
&& rm -f actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
28+
&& ./bin/installdependencies.sh \
29+
&& mkdir /_work
30+
31+
WORKDIR /_work
32+
COPY entrypoint.sh /
33+
RUN chmod +x /entrypoint.sh
34+
ENTRYPOINT ["/entrypoint.sh"]

Dockerfile.ubuntu-bionic-arm

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM ubuntu:bionic
2+
LABEL maintainer="3vilpenguin@gmail.com"
3+
4+
ARG GH_RUNNER_VERSION="2.161.0"
5+
ARG GIT_VERSION="2.9.2"
6+
7+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
8+
# hadolint ignore=DL3003
9+
RUN apt-get update && \
10+
apt-get install -y --no-install-recommends \
11+
curl \
12+
tar \
13+
apt-transport-https \
14+
ca-certificates \
15+
sudo \
16+
gnupg-agent \
17+
software-properties-common \
18+
build-essential \
19+
zlib1g-dev \
20+
gettext \
21+
liblttng-ust-ctl2 \
22+
liblttng-ust0 \
23+
liburcu4 \
24+
libcurl4-openssl-dev \
25+
&& rm -rf /var/lib/apt/lists/* \
26+
&& cd /tmp \
27+
&& curl -sL https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz -o git.tgz \
28+
&& tar zxf git.tgz \
29+
&& cd git-${GIT_VERSION} \
30+
&& ./configure --prefix=/usr \
31+
&& make \
32+
&& make install \
33+
&& cd / \
34+
&& rm -rf /tmp/git.tgz /tmp/git-${GIT_VERSION}
35+
36+
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
37+
&& add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
38+
&& apt-get update \
39+
&& apt-get install -y docker.io --no-install-recommends \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
WORKDIR /actions-runner
43+
RUN curl -O https://githubassets.azureedge.net/runners/${GH_RUNNER_VERSION}/actions-runner-linux-arm-${GH_RUNNER_VERSION}.tar.gz \
44+
&& tar -zxf actions-runner-linux-arm-${GH_RUNNER_VERSION}.tar.gz \
45+
&& rm -f actions-runner-linux-arm-${GH_RUNNER_VERSION}.tar.gz \
46+
&& mkdir /_work
47+
48+
WORKDIR /_work
49+
COPY entrypoint.sh /
50+
RUN chmod +x /entrypoint.sh
51+
ENTRYPOINT ["/entrypoint.sh"]

Dockerfile.ubuntu-xenial

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM ubuntu:xenial
2+
LABEL maintainer="3vilpenguin@gmail.com"
3+
4+
ARG GH_RUNNER_VERSION="2.161.0"
5+
6+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
7+
RUN apt-get update && \
8+
apt-get install -y --no-install-recommends \
9+
curl \
10+
tar \
11+
apt-transport-https \
12+
ca-certificates \
13+
sudo \
14+
gnupg-agent \
15+
software-properties-common \
16+
&& rm -rf /var/lib/apt/lists/*
17+
18+
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
19+
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
20+
&& apt-get update \
21+
&& apt-get install -y docker-ce --no-install-recommends \
22+
&& rm -rf /var/lib/apt/lists/*
23+
24+
WORKDIR /actions-runner
25+
RUN curl -O https://githubassets.azureedge.net/runners/${GH_RUNNER_VERSION}/actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
26+
&& tar -zxf actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
27+
&& rm -f actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
28+
&& ./bin/installdependencies.sh \
29+
&& mkdir /_work
30+
31+
WORKDIR /_work
32+
COPY entrypoint.sh /
33+
RUN chmod +x /entrypoint.sh
34+
ENTRYPOINT ["/entrypoint.sh"]

Dockerfile.ubuntu-xenial-arm

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM ubuntu:xenial
2+
LABEL maintainer="3vilpenguin@gmail.com"
3+
4+
ARG GH_RUNNER_VERSION="2.161.0"
5+
ARG GIT_VERSION="2.9.2"
6+
7+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
8+
# hadolint ignore=DL3003
9+
RUN apt-get update && \
10+
apt-get install -y --no-install-recommends \
11+
curl \
12+
tar \
13+
apt-transport-https \
14+
ca-certificates \
15+
sudo \
16+
gnupg-agent \
17+
software-properties-common \
18+
build-essential \
19+
zlib1g-dev \
20+
gettext \
21+
liblttng-ust-ctl2 \
22+
liblttng-ust0 \
23+
liburcu4 \
24+
libcurl4-openssl-dev \
25+
&& rm -rf /var/lib/apt/lists/* \
26+
&& cd /tmp \
27+
&& curl -sL https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz -o git.tgz \
28+
&& tar zxf git.tgz \
29+
&& cd git-${GIT_VERSION} \
30+
&& ./configure --prefix=/usr \
31+
&& make \
32+
&& make install \
33+
&& cd / \
34+
&& rm -rf /tmp/git.tgz /tmp/git-${GIT_VERSION}
35+
36+
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
37+
&& add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
38+
&& apt-get update \
39+
&& apt-get install -y docker.io --no-install-recommends \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
WORKDIR /actions-runner
43+
RUN curl -O https://githubassets.azureedge.net/runners/${GH_RUNNER_VERSION}/actions-runner-linux-arm-${GH_RUNNER_VERSION}.tar.gz \
44+
&& tar -zxf actions-runner-linux-arm-${GH_RUNNER_VERSION}.tar.gz \
45+
&& rm -f actions-runner-linux-arm-${GH_RUNNER_VERSION}.tar.gz \
46+
&& mkdir /_work
47+
48+
WORKDIR /_work
49+
COPY entrypoint.sh /
50+
RUN chmod +x /entrypoint.sh
51+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)