mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-30 19:22:09 +00:00
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> |
||
---|---|---|
.. | ||
docker | ||
docker-build-push-action | ||
docker-compose | ||
kubernetes | ||
lxc-systemd | ||
README.md |
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 |