examples: Version update for current release of runner

Updated runner image version from 3.0.0 to 5.0.4
Updated docker-dind version from 23.0.6-dind to 27.4.1-dind
pull/407/head
Ellery D'Souza 2024-12-31 13:29:46 -05:00
parent 5fef70c653
commit 00ba378d0e
No known key found for this signature in database
GPG Key ID: A2CA168AF7C71547
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ The following assumes:
* a `runner-config.yml` file exists in /tmp/data
```sh
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/data:/data --user 1000:133 --rm code.forgejo.org/forgejo/runner:3.0.0 forgejo-runner --config runner-config.yaml daemon
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/data:/data --user 1000:133 --rm code.forgejo.org/forgejo/runner:5.0.4 forgejo-runner --config runner-config.yaml daemon
```
The workflows will run using the host docker srever

View File

@ -38,7 +38,7 @@ spec:
# https://forgejo.org/docs/v1.21/admin/actions/#offline-registration
initContainers:
- name: runner-register
image: code.forgejo.org/forgejo/runner:3.2.0
image: code.forgejo.org/forgejo/runner:5.0.4
command: ["forgejo-runner", "register", "--no-interactive", "--token", $(RUNNER_SECRET), "--name", $(RUNNER_NAME), "--instance", $(FORGEJO_INSTANCE_URL)]
env:
- name: RUNNER_NAME
@ -61,7 +61,7 @@ spec:
mountPath: /data
containers:
- name: runner
image: code.forgejo.org/forgejo/runner:3.0.0
image: code.forgejo.org/forgejo/runner:5.0.4
command: ["sh", "-c", "while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...'; sleep 5; done; forgejo-runner daemon"]
env:
- name: DOCKER_HOST
@ -76,7 +76,7 @@ spec:
- name: runner-data
mountPath: /data
- name: daemon
image: docker:23.0.6-dind
image: docker:27.4.1-dind
env:
- name: DOCKER_TLS_CERTDIR
value: /certs