Skip to content

Commit 5eb1ede

Browse files
authored
Merge pull request #119 from JulianGro/debian_buster
Add Debian Buster
2 parents 9181c22 + 6dbc298 commit 5eb1ede

File tree

5 files changed

+87
-4
lines changed

5 files changed

+87
-4
lines changed

.github/workflows/base.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,29 @@ jobs:
5959
retry_on: error
6060
timeout_minutes: 120
6161
command: docker buildx build -f Dockerfile.base.ubuntu-bionic -t ${ORG}/github-runner-base:ubuntu-bionic --output "type=image,push=true" --platform linux/amd64,linux/arm/v7,linux/arm64 .
62+
63+
debian_base_buster_deploy:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Copy Repo Files
67+
uses: actions/checkout@master
68+
- name: Get GitHub organization or user
69+
run: echo 'ORG='$(dirname ${GITHUB_REPOSITORY}) >> $GITHUB_ENV
70+
- name: Set up Docker Buildx
71+
id: buildx
72+
uses: crazy-max/ghaction-docker-buildx@v1
73+
with:
74+
buildx-version: latest
75+
- name: Available platforms
76+
run: echo ${{ steps.buildx.outputs.platforms }}
77+
- name: Copy Dockerfile
78+
run: cp Dockerfile.base Dockerfile.base.debian-buster; sed -i.bak 's/FROM.*/FROM debian:buster/' Dockerfile.base.debian-buster
79+
- name: Login
80+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
81+
- name: Build
82+
uses: nick-invision/retry@v2
83+
with:
84+
max_attempts: 3
85+
retry_on: error
86+
timeout_minutes: 120
87+
command: docker buildx build -f Dockerfile.base.debian-buster -t ${ORG}/github-runner-base:debian-buster --output "type=image,push=true" --platform linux/amd64,linux/arm64 .

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,29 @@ jobs:
5959
retry_on: error
6060
timeout_minutes: 120
6161
command: docker buildx build -f Dockerfile.ubuntu-bionic -t ${ORG}/github-runner:ubuntu-bionic --output "type=image,push=true" --platform linux/amd64,linux/arm/v7,linux/arm64 .
62+
63+
debian_buster_deploy:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Copy Repo Files
67+
uses: actions/checkout@master
68+
- name: Get GitHub organization or user
69+
run: echo 'ORG='$(dirname ${GITHUB_REPOSITORY}) >> $GITHUB_ENV
70+
- name: Set up Docker Buildx
71+
id: buildx
72+
uses: crazy-max/ghaction-docker-buildx@v1
73+
with:
74+
buildx-version: latest
75+
- name: Available platforms
76+
run: echo ${{ steps.buildx.outputs.platforms }}
77+
- name: Copy Dockerfile
78+
run: cp Dockerfile Dockerfile.debian-buster; sed -i.bak "s/FROM.*/FROM ${ORG}\/github-runner-base:debian-buster/" Dockerfile.debian-buster
79+
- name: Login
80+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
81+
- name: Build
82+
uses: nick-invision/retry@v2
83+
with:
84+
max_attempts: 3
85+
retry_on: error
86+
timeout_minutes: 120
87+
command: docker buildx build -f Dockerfile.debian-buster -t ${ORG}/github-runner:debian-buster --output "type=image,push=true" --platform linux/amd64,linux/arm64 .

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,32 @@ jobs:
7575
retry_on: error
7676
timeout_minutes: 120
7777
command: docker buildx build -f Dockerfile.ubuntu-bionic -t ${ORG}/github-runner:${TAG}-ubuntu-bionic --output "type=image,push=true" --platform linux/amd64,linux/arm/v7,linux/arm64 .
78+
79+
debian-buster_tag:
80+
runs-on: ubuntu-latest
81+
needs: create-release
82+
steps:
83+
- name: Copy Repo Files
84+
uses: actions/checkout@master
85+
- name: get version
86+
run: echo 'TAG='${GITHUB_REF#refs/tags/} >> $GITHUB_ENV
87+
- name: Get GitHub organization or user
88+
run: echo 'ORG='$(dirname ${GITHUB_REPOSITORY}) >> $GITHUB_ENV
89+
- name: Set up Docker Buildx
90+
id: buildx
91+
uses: crazy-max/ghaction-docker-buildx@v1
92+
with:
93+
buildx-version: latest
94+
- name: Available platforms
95+
run: echo ${{ steps.buildx.outputs.platforms }}
96+
- name: Copy Dockerfile
97+
run: cp Dockerfile Dockerfile.debian-buster; sed -i.bak "s/FROM.*/FROM ${ORG}\/github-runner-base:debian-buster/" Dockerfile.debian-buster
98+
- name: Login
99+
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
100+
- name: Build
101+
uses: nick-invision/retry@v2
102+
with:
103+
max_attempts: 3
104+
retry_on: error
105+
timeout_minutes: 120
106+
command: docker buildx build -f Dockerfile.debian-buster -t ${ORG}/github-runner:${TAG}-debian-buster --output "type=image,push=true" --platform linux/amd64,linux/arm64 .

Dockerfile.base

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ RUN apt-get update && \
2121
apt-transport-https \
2222
ca-certificates \
2323
sudo \
24-
gnupg-agent \
24+
gpg-agent \
25+
gnupg \
2526
software-properties-common \
2627
build-essential \
2728
zlib1g-dev \
@@ -51,8 +52,8 @@ RUN apt-get update && \
5152
&& make install \
5253
&& cd / \
5354
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ${DOCKER_KEY} \
54-
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
55-
&& [[ $(lsb_release -cs) == "focal" ]] && ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu focal stable" ) || ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" ) \
55+
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | awk '{print tolower($0)}')/gpg | apt-key add - \
56+
&& ( add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(lsb_release -is | awk '{print tolower($0)}') $(lsb_release -cs) stable" ) \
5657
&& apt-get update \
5758
&& apt-get install -y docker-ce docker-ce-cli containerd.io --no-install-recommends --allow-unauthenticated \
5859
&& [[ $(lscpu -J | jq -r '.lscpu[] | select(.field == "Vendor ID:") | .data') == "ARM" ]] && echo "Not installing docker-compose. See https://github.com/docker/compose/issues/6831" || ( curl -sL "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose ) \

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This will run the [new self-hosted github actions runners](https://help.github.c
99

1010
### Docker Support ###
1111

12-
Please note that while this runner installs and allows docker, github actions itself does not support using docker from a self hosted runner yet.
12+
Please note that while this runner installs and allows docker, github actions itself does not support using docker from a self hosted runner yet.
1313
For more information:
1414

1515
* https://github.com/actions/runner/issues/406
@@ -26,6 +26,7 @@ A workaround exists, please see [here](https://github.com/myoung34/docker-github
2626
| --- | --- | --- | --- | --- | --- |
2727
| ubuntu focal | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+/` | [latest](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=latest) | This is the latest build (Rebuilt nightly and on master merges). Tags without an OS name are included. | Tags without an OS name *before* 9/17/2020 are `eoan`. `armv7` support stopped 9/18/2020 due to inconsistent docker-ce packaging |
2828
| ubuntu bionic | `x86_64`,`armv7`,`arm64` | `/\d\.\d{3}\.\d+-ubuntu-bionic/` | [ubuntu-bionic](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=ubuntu-bionic) | This is the latest build from bionic (Rebuilt nightly and on master merges). Tags with `-ubuntu-bionic` are included and created on [upstream tags](https://github.com/actions/runner/tags). | |
29+
| debian buster | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-debian-buster/` | [debian-buster](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=debian-buster) | This is the latest build from buster (Rebuilt nightly and on master merges). Tags with `-debian-buster` are included and created on [upstream tags](https://github.com/actions/runner/tags). | `armv7` support should be possible but not added on our side. |
2930
| ubuntu xenial | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-ubuntu-xenial/` | [ubuntu-xenial](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=ubuntu-xenial) | This is the latest build from xenial (Rebuilt nightly and on master merges). Tags with `-ubuntu-xenial` are included and created on [upstream tags](https://github.com/actions/runner/tags). | This is deprecated as of 7/15/2021 and will no longer receive tags. |
3031

3132
These containers are built via Github actions that [copy the dockerfile](https://github.com/myoung34/docker-github-actions-runner/blob/master/.github/workflows/deploy.yml#L47), changing the `FROM` and building to provide simplicity.

0 commit comments

Comments
 (0)