1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-30 19:22:09 +00:00
forgejo-runner/examples
jankatins 02df78a9ec
fix: Allow the runner to keep it's labels (#965)
I had the case that an already registered runner was losing it's labels due to a race condition (I think): the compose file was restarted, the runner came up but 10 seconds later, the labels were reset:

>If the command is run without --labels, they will be reset, and the runner won’t set them back until it is restarted. The --keep-labels option can be used to preserve the existing labels.

I always started all services in the compose file at once, so I never got the idea to restart the runner alone and the runner logs actually always said that the labels where there:

> ... with labels: [docker-cli node-bookworm], declared successfully

Signed-off-by: jankatins <jankatins@noreply.code.forgejo.org>

<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-->
- bug fixes
  - [PR](https://code.forgejo.org/forgejo/runner/pulls/965): <!--number 965 --><!--line 0 --><!--description Zml4OiBBbGxvdyB0aGUgcnVubmVyIHRvIGtlZXAgaXQncyBsYWJlbHM=-->fix: Allow the runner to keep it's labels<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/965
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: jankatins <jankatins@noreply.code.forgejo.org>
Co-committed-by: jankatins <jankatins@noreply.code.forgejo.org>
2025-09-08 21:27:43 +00:00
..
docker fix: example uses code.forgejo.org/oci 2025-01-15 12:24:32 +01:00
docker-build-push-action feat: add an LXC based example of docker/build-push-action usage (#781) 2025-08-01 14:04:02 +00:00
docker-compose fix: Allow the runner to keep it's labels (#965) 2025-09-08 21:27:43 +00:00
kubernetes Improve doc and add full example for Kubernetes (#657) 2025-07-03 15:22:24 +00:00
lxc-systemd fix: lxc-systemd example: export INPUTS_SERIAL (#943) 2025-09-06 17:19:13 +00:00
README.md feat: add an LXC based example of docker/build-push-action usage (#781) 2025-08-01 14:04:02 +00:00

A collection of Forgejo actions examples.

Other examples can be found in the documentation.

Section Description
docker-build-push-action-in-lxc using the LXC runner backend to build and push a container image using the docker/build-push-action action
docker using the host docker server by mounting the socket
LXC systemd systemd unit managing LXC containers dedicated to a single runner
docker-compose all in one docker-compose with the Forgejo server, the runner and docker in docker
kubernetes a sample deployment for the Forgejo runner