-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4661ff0
commit f7c9619
Showing
4 changed files
with
74 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
FROM --platform= summerwind/actions-runner-dind:latest | ||
|
||
|
||
|
||
|
||
# FROM mcr.microsoft.com/dotnet/runtime-deps:6.0 as build | ||
|
||
# # Replace value with the latest runner release version | ||
# # source: https://github.com/actions/runner/releases | ||
# # ex: 2.303.0 | ||
# ARG RUNNER_VERSION="2.311.0" | ||
# ARG RUNNER_ARCH="arm64" | ||
# # Replace value with the latest runner-container-hooks release version | ||
# # source: https://github.com/actions/runner-container-hooks/releases | ||
# # ex: 0.3.1 | ||
# ARG RUNNER_CONTAINER_HOOKS_VERSION="0.5.0" | ||
|
||
# ENV DEBIAN_FRONTEND=noninteractive | ||
# ENV RUNNER_MANUALLY_TRAP_SIG=1 | ||
# ENV ACTIONS_RUNNER_PRINT_LOG_TO_STDOUT=1 | ||
|
||
# RUN apt update -y && apt install curl unzip -y | ||
|
||
# # Add Docker's official GPG key: | ||
# RUN apt-get update && \ | ||
# apt-get install ca-certificates curl gnupg -y && \ | ||
# install -m 0755 -d /etc/apt/keyrings && \ | ||
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ | ||
# chmod a+r /etc/apt/keyrings/docker.gpg && \ | ||
# # Add the repository to Apt sources: | ||
# echo \ | ||
# "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
# $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | ||
# tee /etc/apt/sources.list.d/docker.list > /dev/null && \ | ||
# apt-get update && \ | ||
# apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
|
||
# RUN adduser --disabled-password --gecos "" --uid 1001 runner \ | ||
# && groupadd docker --gid 123 \ | ||
# && usermod -aG sudo runner \ | ||
# && usermod -aG docker runner \ | ||
# && echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers \ | ||
# && echo "Defaults env_keep += \"DEBIAN_FRONTEND\"" >> /etc/sudoers | ||
|
||
# WORKDIR /home/runner | ||
|
||
# RUN 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 \ | ||
# && tar xzf ./runner.tar.gz \ | ||
# && rm runner.tar.gz | ||
|
||
# RUN curl -f -L -o runner-container-hooks.zip https://github.com/actions/runner-container-hooks/releases/download/v${RUNNER_CONTAINER_HOOKS_VERSION}/actions-runner-hooks-k8s-${RUNNER_CONTAINER_HOOKS_VERSION}.zip \ | ||
# && unzip ./runner-container-hooks.zip -d ./k8s \ | ||
# && rm runner-container-hooks.zip | ||
|
||
# USER runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,9 @@ | ||
replicaCount: 1 | ||
webhookPort: 9443 | ||
syncPeriod: 1m | ||
defaultScaleDownDelay: 5m | ||
enableLeaderElection: true | ||
|
||
authSecret: | ||
enabled: true | ||
create: false | ||
name: "controller-manager" | ||
|
||
image: | ||
repository: "summerwind/actions-runner-controller" | ||
actionsRunnerRepositoryAndTag: "summerwind/actions-runner:ubuntu-20.04" | ||
dindSidecarRepositoryAndTag: "docker:dind" | ||
pullPolicy: IfNotPresent | ||
|
||
serviceAccount: | ||
create: true | ||
|
||
service: | ||
type: ClusterIP | ||
port: 443 | ||
|
||
certManagerEnabled: true | ||
|
||
logFormat: text | ||
|
||
githubWebhookServer: | ||
enabled: false | ||
githubConfigUrl: "https://github.com/comtily" | ||
|
||
githubConfigSecret: gha-arc | ||
template: | ||
spec: | ||
containers: | ||
- name: runner | ||
image: localhost:5000/actions_runner | ||
command: ["/home/runner/run.sh"] |