Compare commits

..
48 Commits
Author SHA1 Message Date
Marcus Young eb29a1af8c [Automated 🤖 ] Bump to version 2.319.1 2024-08-13 11:35:11 -05:00
Marcus Young 2fd4bf229b [Automated 🤖 ] Bump to version 2.319.0 2024-08-08 09:19:26 -05:00
Marcus Young 97002e8519 [Automated 🤖 ] Bump to version 2.318.0 2024-07-26 08:12:10 -07:00
Marcus Young 5fb8b0a1b1 Add stale-exempt label for pr/issue exemptions 2024-06-29 08:29:08 -05:00
Marcus Young b53db30fa5 Turn on stale bot 2024-06-20 20:39:58 -05:00
Marcus Young 6043dbb3b9 Add stale bot 2024-06-18 05:57:20 -05:00
myoung34andGitHub e47abb3ec3 Merge pull request #374 from myoung34/renovate/docker-build-push-action-6.x
Update docker/build-push-action action to v6
2024-06-17 07:18:03 -05:00
renovate[bot]andGitHub 453428ac0f Update docker/build-push-action action to v6 2024-06-17 09:51:58 +00:00
myoung34andGitHub 83d5d17770 Merge pull request #372 from myoung34/renovate/actions-checkout-digest
Update actions/checkout digest to 692973e
2024-06-13 12:42:38 -05:00
renovate[bot]andGitHub 54e9ded780 Update actions/checkout digest to 692973e 2024-06-13 17:21:46 +00:00
Marcus Young dc5c5ebb26 [Automated 🤖 ] Bump to version 2.317.0 2024-05-30 09:08:24 -05:00
myoung34andGitHub 2550895e91 Merge pull request #368 from myoung34/renovate/actions-checkout-digest
Update actions/checkout digest to a5ac7e5
2024-05-20 13:30:36 -05:00
renovate[bot]andGitHub bdf0df2465 Update actions/checkout digest to a5ac7e5 2024-05-20 18:29:50 +00:00
Marcus Young 9efb8bf081 Attempt to clean up ubuntu-isms 2024-05-16 10:49:44 -05:00
Marcus Young 2391c0c5a1 Remove bullseye ahead of June security EOL 2024-05-15 20:10:39 -05:00
myoung34andGitHub a5aa5cee61 Merge pull request #366 from MattKobayashi/debian-bookworm
Add Debian `bookworm` runner
2024-05-15 19:07:55 -05:00
Matthew Kobayashi 9114ab1b9e Add Debian bookworm runner 2024-05-15 23:23:07 +08:00
myoung34andGitHub b5efdc8002 Merge pull request #364 from myoung34/renovate/actions-checkout-digest
Update actions/checkout digest to 0ad4b8f
2024-05-09 14:06:06 -05:00
renovate[bot]andGitHub 8226e09b61 Update actions/checkout digest to 0ad4b8f 2024-05-09 17:44:24 +00:00
myoung34andGitHub e850becbda Merge pull request #362 from myoung34/renovate/actions-checkout-digest
Update actions/checkout digest to 44c2b7a
2024-05-08 17:21:06 -05:00
renovate[bot]andGitHub 830b5ce645 Update actions/checkout digest to 44c2b7a 2024-05-08 21:58:46 +00:00
Marcus Young 8af3f260bc [Automated 🤖 ] Bump to version 2.316.1 2024-05-02 12:56:23 -05:00
myoung34andGitHub 2cac13888e Merge pull request #361 from hisa9chi/fix-typo-powershell
Fix : typo env PWSH_DOWNLOAD_URL
2024-04-30 20:38:17 -05:00
Hisashi IguchiandGitHub 7f30dee2ad fix typo PWSH_DOWNLOAD_URL 2024-05-01 09:41:30 +09:00
myoung34andGitHub ec7e410e7c Merge pull request #360 from hisa9chi/add-powershell
feat: added PowerShell/PowerShell
2024-04-30 08:32:57 -05:00
hisa9chi 5027295682 deletel rm command 2024-04-30 22:31:40 +09:00
hisa9chi 34a90a6940 add powershell 2024-04-30 21:27:41 +09:00
myoung34andGitHub 9356c3c1e4 Merge pull request #357 from myoung34/deprecate_bionic
Ubuntu: Move bionic to noble
2024-04-25 21:11:19 -05:00
Marcus Young 07c8540e6d Ubuntu: Move bionic to noble 2024-04-25 21:10:57 -05:00
myoung34andGitHub 2ea29d01f4 Merge pull request #355 from myoung34/renovate/actions-checkout-digest
Update actions/checkout digest to 0ad4b8f
2024-04-25 11:12:12 -05:00
renovate[bot]andGitHub 25a75dfd9d Update actions/checkout digest to 0ad4b8f 2024-04-25 16:10:29 +00:00
myoung34andGitHub 071e3436f2 Merge pull request #354 from chinochao/fix-ulimit
Fix Docker Ulimit Invalid Argument
2024-04-25 11:10:09 -05:00
Marcus Young d5709bcff5 Add better signal trap for debugging 2024-04-25 11:02:50 -05:00
Roberto Chaud 28e1d3f9fb commend out ulimit -Hn 2024-04-24 12:58:41 -05:00
myoung34andGitHub 0b7a6e5195 Merge pull request #351 from myoung34/renovate/actions-checkout-digest
Update actions/checkout digest to 1d96c77
2024-04-23 14:48:53 -05:00
renovate[bot]andGitHub 931a9598f1 Update actions/checkout digest to 1d96c77 2024-04-23 15:59:26 +00:00
Marcus Young f788148b2c [Automated 🤖 ] Bump to version 2.316.0 2024-04-23 10:59:01 -05:00
Marcus Young e38ae432d7 [Automated 🤖 ] Bump to version 2.315.0 2024-03-26 14:23:04 -05:00
myoung34andGitHub 122b1e3055 Merge pull request #348 from myoung34/renovate/shellcheck-0.x
Update dependency shellcheck to v0.10.0
2024-03-07 21:37:25 -06:00
renovate[bot]andGitHub 8eb278d63a Update dependency shellcheck to v0.10.0 2024-03-08 03:25:55 +00:00
myoung34andGitHub f6dd276dca Merge pull request #346 from mattseymour/patch-1
Update README.md
2024-02-28 08:51:48 -06:00
Matt SeymourandGitHub e51fe624fb Update README.md 2024-02-28 14:48:10 +00:00
Matt SeymourandGitHub 88532c5a72 Update README.md
Fix typos and update the argument description for RUNNER_SCOPE.
2024-02-28 14:27:21 +00:00
Marcus Young d259f87e8d [Automated 🤖 ] Bump to version 2.314.1 2024-02-27 14:34:04 -06:00
Marcus Young dac70ea65f [Automated 🤖 ] Bump to version 2.314.0 2024-02-26 12:56:43 -06:00
Marcus Young 79c6aa0f01 [Automated 🤖 ] Bump to version 2.313.0 2024-02-07 14:32:31 -06:00
myoung34andGitHub 323b49ed6b Merge pull request #345 from myoung34/renovate/pre-commit-action-3.x
Update pre-commit/action action to v3.0.1
2024-02-07 10:43:48 -06:00
renovate[bot]andGitHub aaf2b396be Update pre-commit/action action to v3.0.1 2024-02-07 16:41:40 +00:00
11 changed files with 69 additions and 36 deletions
+5 -5
View File
@@ -28,7 +28,7 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.base
@@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
release: [jammy, focal, bionic]
release: [jammy, focal, noble]
fail-fast: false
steps:
- name: Copy Repo Files
@@ -62,7 +62,7 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.base.ubuntu-${{ matrix.release }}
@@ -77,7 +77,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
release: [bullseye, sid]
release: [bookworm, sid]
fail-fast: false
steps:
- name: Copy Repo Files
@@ -96,7 +96,7 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.base.debian-${{ matrix.release }}
+5 -5
View File
@@ -40,7 +40,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
@@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
release: [jammy, focal, bionic]
release: [jammy, focal, noble]
fail-fast: false
steps:
- name: Copy Repo Files
@@ -80,7 +80,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.ubuntu-${{ matrix.release }}
@@ -95,7 +95,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
release: [bullseye, sid]
release: [bookworm, sid]
fail-fast: false
steps:
- name: Copy Repo Files
@@ -120,7 +120,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.debian-${{ matrix.release }}
+6 -6
View File
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
@@ -54,7 +54,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
@@ -70,7 +70,7 @@ jobs:
needs: create-release
strategy:
matrix:
release: [jammy, focal, bionic]
release: [jammy, focal, noble]
fail-fast: false
steps:
- name: Copy Repo Files
@@ -97,7 +97,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.ubuntu-${{ matrix.release }}
@@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
release: [bullseye, sid]
release: [bookworm, sid]
fail-fast: false
needs: create-release
steps:
@@ -140,7 +140,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.debian-${{ matrix.release }}
+23
View File
@@ -0,0 +1,23 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
days-before-stale: 30
days-before-close: 5
days-before-pr-close: -1
exempt-issue-labels: 'stale-exempt'
exempt-pr-labels: 'stale-exempt'
+2 -2
View File
@@ -8,8 +8,8 @@ jobs:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.0
- uses: pre-commit/action@v3.0.1
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
-4
View File
@@ -8,7 +8,3 @@ repos:
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/stratasan/hadolint-pre-commit
rev: cdefcb096e520a6daa9552b1d4636f5f1e1729cd
hooks:
- id: hadolint
+1 -1
View File
@@ -1 +1 @@
shellcheck 0.9.0
shellcheck 0.10.0
+1 -1
View File
@@ -5,7 +5,7 @@ LABEL maintainer="myoung34@my.apsu.edu"
ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
RUN mkdir -p /opt/hostedtoolcache
ARG GH_RUNNER_VERSION="2.312.0"
ARG GH_RUNNER_VERSION="2.319.1"
ARG TARGETPLATFORM
+10 -5
View File
@@ -4,6 +4,7 @@ LABEL maintainer="myoung34@my.apsu.edu"
ARG DUMB_INIT_VERSION="1.2.2"
ARG GIT_CORE_PPA_KEY="A1715D88E1DF1F24"
# TODO: remove git PPA and skopeo customizations for focal when focal hits EOL
ENV GIT_LFS_VERSION="3.2.0"
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
@@ -56,9 +57,9 @@ RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen \
&& DPKG_ARCH="$(dpkg --print-architecture)" \
&& LSB_RELEASE_CODENAME="$(lsb_release --codename | cut -f2)" \
&& sed -e 's/Defaults.*env_reset/Defaults env_keep = "HTTP_PROXY HTTPS_PROXY NO_PROXY FTP_PROXY http_proxy https_proxy no_proxy ftp_proxy"/' -i /etc/sudoers \
&& echo deb http://ppa.launchpad.net/git-core/ppa/ubuntu $([[ $(grep -E '^ID=' /etc/os-release | sed 's/.*=//g') == "ubuntu" ]] && (grep VERSION_CODENAME /etc/os-release | sed 's/.*=//g') || echo bionic) main>/etc/apt/sources.list.d/git-core.list \
&& ( [[ "${LSB_RELEASE_CODENAME}" == "focal" ]] && (echo deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main>/etc/apt/sources.list.d/git-core.list ) || : ) \
&& apt-get update \
&& ( apt-get install -y --no-install-recommends git || apt-get install -t stable -y --no-install-recommends git || apt-get install -y --no-install-recommends git=1:2.33.1-0ppa1~ubuntu18.04.1 git-man=1:2.33.1-0ppa1~ubuntu18.04.1 ) \
&& ( apt-get install -y --no-install-recommends git || apt-get install -t stable -y --no-install-recommends git ) \
&& ( [[ $(apt-cache search -n liblttng-ust0 | awk '{print $1}') == "liblttng-ust0" ]] && apt-get install -y --no-install-recommends liblttng-ust0 || : ) \
&& ( [[ $(apt-cache search -n liblttng-ust1 | awk '{print $1}') == "liblttng-ust1" ]] && apt-get install -y --no-install-recommends liblttng-ust1 || : ) \
&& ( ( curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip" && unzip awscliv2.zip -d /tmp/ && /tmp/aws/install && rm awscliv2.zip) || pip3 install --no-cache-dir awscli ) \
@@ -71,17 +72,21 @@ RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen \
&& apt-get update \
&& apt-get install -y docker-ce docker-ce-cli docker-buildx-plugin containerd.io docker-compose-plugin --no-install-recommends --allow-unauthenticated \
&& echo -e '#!/bin/sh\ndocker compose --compatibility "$@"' > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose \
&& ( [[ "${LSB_RELEASE_CODENAME}" == "focal" ]] && ( echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && curl -L "https://build.opensuse.org/projects/devel:kubic/public_key" | apt-key add -; echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && curl -L "https://build.opensuse.org/projects/devel:kubic/public_key" | apt-key add - && apt-get update) || : ) \
&& ( [[ "${LSB_RELEASE_CODENAME}" == "focal" || "${LSB_RELEASE_CODENAME}" == "jammy" || "${LSB_RELEASE_CODENAME}" == "sid" || "${LSB_RELEASE_CODENAME}" == "bullseye" ]] && apt-get install -y --no-install-recommends podman buildah skopeo || : ) \
&& ( [[ "${LSB_RELEASE_CODENAME}" == "jammy" ]] && echo "Ubuntu Jammy is marked as beta. Please see https://github.com/actions/virtual-environments/issues/5490" || : ) \
&& ( [[ "${LSB_RELEASE_CODENAME}" == "focal" ]] && ( echo "available in 20.10 and higher" && echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && curl -L "https://build.opensuse.org/projects/devel:kubic/signing_keys/download?kind=gpg" | apt-key add - ) || : ) \
&& apt-get update \
&& ( apt-get install -y --no-install-recommends podman buildah skopeo || : ) \
&& GH_CLI_VERSION=$(curl -sL -H "Accept: application/vnd.github+json" https://api.github.com/repos/cli/cli/releases/latest | jq -r '.tag_name' | sed 's/^v//g') \
&& GH_CLI_DOWNLOAD_URL=$(curl -sL -H "Accept: application/vnd.github+json" https://api.github.com/repos/cli/cli/releases/latest | jq ".assets[] | select(.name == \"gh_${GH_CLI_VERSION}_linux_${DPKG_ARCH}.deb\")" | jq -r '.browser_download_url') \
&& curl -sSLo /tmp/ghcli.deb ${GH_CLI_DOWNLOAD_URL} && apt-get -y install /tmp/ghcli.deb && rm /tmp/ghcli.deb \
&& YQ_VERSION=$(curl -sL -H "Accept: application/vnd.github+json" https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r '.tag_name' | sed 's/^v//g') \
&& YQ_DOWNLOAD_URL=$(curl -sL -H "Accept: application/vnd.github+json" https://api.github.com/repos/mikefarah/yq/releases/latest | jq ".assets[] | select(.name == \"yq_linux_${DPKG_ARCH}.tar.gz\")" | jq -r '.browser_download_url') \
&& ( curl -s ${YQ_DOWNLOAD_URL} -L -o /tmp/yq.tar.gz && tar -xzf /tmp/yq.tar.gz -C /tmp && mv /tmp/yq_linux_${DPKG_ARCH} /usr/local/bin/yq) \
&& PWSH_VERSION=$(curl -sL -H "Accept: application/vnd.github+json" https://api.github.com/repos/PowerShell/PowerShell/releases/latest | jq -r '.tag_name' | sed 's/^v//g') \
&& PWSH_DOWNLOAD_URL=$(curl -sL -H "Accept: application/vnd.github+json" https://api.github.com/repos/PowerShell/PowerShell/releases/latest | jq -r ".assets[] | select(.name == \"powershell-${PWSH_VERSION}-linux-${DPKG_ARCH//amd64/x64}.tar.gz\") | .browser_download_url") \
&& ( curl -L -o /tmp/powershell.tar.gz $PWSH_DOWNLOAD_URL && mkdir -p /opt/powershell && tar zxf /tmp/powershell.tar.gz -C /opt/powershell && chmod +x /opt/powershell/pwsh && ln -s /opt/powershell/pwsh /usr/bin/pwsh ) \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& sed -i 's/ulimit -Hn/# ulimit -Hn/g' /etc/init.d/docker \
&& groupadd -g 121 runner \
&& useradd -mr -d /home/runner -u 1001 -g 121 runner \
&& usermod -aG sudo runner \
+5 -5
View File
@@ -36,10 +36,10 @@ Currently runners [do not support containerd](https://github.com/actions/runner/
| Container Base | Supported Architectures | Tag Regex | Docker Tags | Description | Notes |
| --- | --- | --- | --- | --- | --- |
| ubuntu focal | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+/` `/\d\.\d{3}\.\d+-ubuntu-focal/`| [latest](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=latest) [ubuntu-focal](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=ubuntu-focal) | This is the latest build (Rebuilt nightly and on master merges). Tags without an OS name are included. Tags with `-ubuntu-focal` are included and created on [upstream tags](https://github.com/actions/runner/tags).|
| ubuntu noble | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-ubuntu-noble/` | [ubuntu-noble](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=ubuntu-noble) | This is the latest build from noble (Rebuilt nightly and on master merges). Tags with `-ubuntu-noble` are included and created on [upstream tags](https://github.com/actions/runner/tags). | |
| ubuntu jammy | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-ubuntu-jammy/` | [ubuntu-jammy](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=ubuntu-jammy) | This is the latest build from jammy (Rebuilt nightly and on master merges). Tags with `-ubuntu-jammy` are included and created on [upstream tags](https://github.com/actions/runner/tags). | There is [currently an issue with jammy from inside a 20.04LTS host](https://github.com/myoung34/docker-github-actions-runner/issues/219) which is why this is not `latest` |
| ubuntu bionic | `x86_64`,`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). | |
| debian buster (now deprecated) | `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) | Debian buster is now deprecated. The packages for arm v7 are in flux and are wildly causing build failures (git as well as apt-key and liblttng-ust#. Tags with `-debian-buster` are included and created on [upstream tags](https://github.com/actions/runner/tags). | |
| debian bullseye | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-debian-bullseye/` | [debian-bullseye](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=debian-bullseye) | This is the latest build from bullseye (Rebuilt nightly and on master merges). Tags with `-debian-bullseye` are included and created on [upstream tags](https://github.com/actions/runner/tags). | |
| debian bookworm | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-debian-bookworm/` | [debian-bookworm](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=debian-bookworm) | This is the latest build from bookworm (Rebuilt nightly and on master merges). Tags with `-debian-bookworm` are included and created on [upstream tags](https://github.com/actions/runner/tags). | |
| debian sid | `x86_64`,`arm64` | `/\d\.\d{3}\.\d+-debian-sid/` | [debian-sid](https://hub.docker.com/r/myoung34/github-runner/tags?page=1&name=debian-sid) | This is the latest build from sid (Rebuilt nightly and on master merges). Tags with `-debian-sid` are included and created on [upstream tags](https://github.com/actions/runner/tags). | |
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.
@@ -49,14 +49,14 @@ These containers are built via Github actions that [copy the dockerfile](https:/
| Environment Variable | Description |
| --- | --- |
| `RUN_AS_ROOT` | Boolean to run as root. If `true`: will run as root. If `True` and the user is overridden it will error. If any other value it will run as the `runner` user and allow an optional override. Default is `true` |
| `RUNNER_NAME` | The name of the runner to use. Supercedes (overrides) `RUNNER_NAME_PREFIX` |
| `RUNNER_NAME` | The name of the runner to use. Supersedes (overrides) `RUNNER_NAME_PREFIX` |
| `RUNNER_NAME_PREFIX` | A prefix for runner name (See `RANDOM_RUNNER_SUFFIX` for how the full name is generated). Note: will be overridden by `RUNNER_NAME` if provided. Defaults to `github-runner` |
| `RANDOM_RUNNER_SUFFIX` | Boolean to use a randomized runner name suffix (preceeded by `RUNNER_NAME_PREFIX`). Will use a 13 character random string by default. If set to a value other than true it will attempt to use the contents of `/etc/hostname` or fall back to a random string if the file does not exist or is empty. Note: will be overridden by `RUNNER_NAME` if provided. Defaults to `true`. |
| `RANDOM_RUNNER_SUFFIX` | Boolean to use a randomized runner name suffix (preceded by `RUNNER_NAME_PREFIX`). Will use a 13 character random string by default. If set to a value other than true it will attempt to use the contents of `/etc/hostname` or fall back to a random string if the file does not exist or is empty. Note: will be overridden by `RUNNER_NAME` if provided. Defaults to `true`. |
| `ACCESS_TOKEN` | A [github PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) to use to generate `RUNNER_TOKEN` dynamically at container start. Not using this requires a valid `RUNNER_TOKEN` |
| `APP_ID` | The github application ID. Must be paired with `APP_PRIVATE_KEY` and should not be used with `ACCESS_TOKEN` or `RUNNER_TOKEN` |
| `APP_PRIVATE_KEY` | The github application private key. Must be paired with `APP_ID` and should not be used with `ACCESS_TOKEN` or `RUNNER_TOKEN` |
| `APP_LOGIN` | The github application login id. Can be paired with `APP_ID` and `APP_PRIVATE_KEY` if default value extracted from `REPO_URL` or `ORG_NAME` is not correct. Note that no default is present when `RUNNER_SCOPE` is 'enterprise'. |
| `RUNNER_SCOPE` | The scope the runner will be registered on. Valid values are `repo`, `org` and `ent`. For 'org' and 'enterprise', `ACCESS_TOKEN` is required and `REPO_URL` is unnecessary. If 'org', requires `ORG_NAME`; if 'enterprise', requires `ENTERPRISE_NAME`. Default is 'repo'. |
| `RUNNER_SCOPE` | The scope the runner will be registered on. Valid values are `repo`, `org` and `ent`. For 'org' and 'enterprise', `ACCESS_TOKEN` is required and `REPO_URL` is unnecessary. If 'org', requires `ORG_NAME`; if 'ent', requires `ENTERPRISE_NAME`. Default is 'repo'. |
| `ORG_NAME` | The organization name for the runner to register under. Requires `RUNNER_SCOPE` to be 'org'. No default value. |
| `ENTERPRISE_NAME` | The enterprise name for the runner to register under. Requires `RUNNER_SCOPE` to be 'enterprise'. No default value. |
| `LABELS` | A comma separated string to indicate the labels. Default is 'default' |
+11 -2
View File
@@ -11,8 +11,15 @@ export -n RUNNER_TOKEN
export -n APP_ID
export -n APP_PRIVATE_KEY
trap_with_arg() {
func="$1" ; shift
for sig ; do
trap "$func $sig" "$sig"
done
}
deregister_runner() {
echo "Caught SIGTERM. Deregistering runner"
echo "Caught $1 - Deregistering runner"
if [[ -n "${ACCESS_TOKEN}" ]]; then
_TOKEN=$(ACCESS_TOKEN="${ACCESS_TOKEN}" bash /token.sh)
RUNNER_TOKEN=$(echo "${_TOKEN}" | jq -r .token)
@@ -168,8 +175,10 @@ if [[ -n "${CONFIGURED_ACTIONS_RUNNER_FILES_DIR}" ]]; then
cp -p -r "/actions-runner/_diag" "/actions-runner/svc.sh" /actions-runner/.[^.]* "${CONFIGURED_ACTIONS_RUNNER_FILES_DIR}"
fi
if [[ ${_DISABLE_AUTOMATIC_DEREGISTRATION} == "false" ]]; then
trap deregister_runner SIGINT SIGQUIT SIGTERM INT TERM QUIT
trap_with_arg deregister_runner SIGINT SIGQUIT SIGTERM INT TERM QUIT
fi
# Start docker service if needed (e.g. for docker-in-docker)