Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mobilecoinofficial/gha-runner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: Zipstack/gha-runner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 18, 2024

  1. Copy the full SHA
    a37d644 View commit details
  2. Copy the full SHA
    3b9f0f9 View commit details
  3. helm values.yaml added

    Signed-off-by: Jaseem Jas <89440144+jaseemjaskp@users.noreply.github.com>
    jaseemjaskp authored Sep 18, 2024
    Copy the full SHA
    c360fb2 View commit details
Showing with 70 additions and 1 deletion.
  1. +2 −1 Dockerfile
  2. +68 −0 values.yaml
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -15,7 +15,8 @@ RUN apt-get update \
unzip \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*

RUN curl -SL https://github.com/docker/compose/releases/download/v2.28.1/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
RUN chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
COPY wait_for_docker_then_run.sh /usr/local/bin/wait_for_docker_then_run.sh

USER runner
68 changes: 68 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
containerMode:
type: dind
githubConfigSecret: pre-defined-github-secret
githubConfigUrl: https://github.com/Zipstack
maxRunners: 10
minRunners: 0
runnerGroup: default
runnerScaleSetName: custom-k8s-runner
template:
spec:
containers:
- command:
- /home/runner/run.sh
image: unstract/actions-runner:2.319.1
name: runner
template:
spec:
containers:
- command:
- /home/runner/run.sh
env:
- name: DOCKER_HOST
value: unix:///var/run/docker.sock
image: unstract/actions-runner:2.319.1
name: runner
volumeMounts:
- mountPath: /home/runner/_work
name: work
- mountPath: /var/run
name: dind-sock
- args:
- dockerd
- --host=unix:///var/run/docker.sock
- --group=$(DOCKER_GROUP_GID)
env:
- name: DOCKER_GROUP_GID
value: "123"
image: docker:dind
name: dind
securityContext:
privileged: true
volumeMounts:
- mountPath: /home/runner/_work
name: work
- mountPath: /var/run
name: dind-sock
- mountPath: /home/runner/externals
name: dind-externals
initContainers:
- command:
- cp
- -r
- -v
- /home/runner/externals/.
- /home/runner/tmpDir/
image: unstract/actions-runner:2.319.1
name: init-dind-externals
volumeMounts:
- mountPath: /home/runner/tmpDir
name: dind-externals
volumes:
- emptyDir: {}
name: work
- emptyDir: {}
name: dind-sock
- emptyDir: {}
name: dind-externals