Compare commits
1 Commits
f3f7442849
..
v0.9.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 4be350d758 |
@@ -13,10 +13,8 @@ jobs:
|
|||||||
# regardless of this instance's default Actions permission mode.
|
# regardless of this instance's default Actions permission mode.
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
# Must match a label your act_runner is registered with. The runner's
|
# Must match the label your self-hosted act_runner registers with.
|
||||||
# own default label-image is irrelevant here since `container:` below
|
runs-on: self-hosted
|
||||||
# overrides the actual build image per-job.
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
container:
|
||||||
# :latest — always the most recently pushed build-image.sh output.
|
# :latest — always the most recently pushed build-image.sh output.
|
||||||
# Pin to a specific tag here (see build-image/VERSION) if you need a
|
# Pin to a specific tag here (see build-image/VERSION) if you need a
|
||||||
|
|||||||
+3
-5
@@ -285,17 +285,15 @@ line in `.gitea/workflows/release.yml` to the versioned tag instead.
|
|||||||
# https://gitea.com/gitea/act_runner — grab the latest release binary
|
# https://gitea.com/gitea/act_runner — grab the latest release binary
|
||||||
./act_runner register --no-interactive \
|
./act_runner register --no-interactive \
|
||||||
--instance <your gitea URL> --token <token> \
|
--instance <your gitea URL> --token <token> \
|
||||||
--name <runner-name> --labels ubuntu-latest:docker://node:20-bookworm
|
--name <runner-name> --labels self-hosted:docker://node:20-bookworm
|
||||||
./act_runner daemon
|
./act_runner daemon
|
||||||
```
|
```
|
||||||
The image after `docker://` in `--labels` is only a fallback for jobs that
|
The image after `docker://` in `--labels` is only a fallback for jobs that
|
||||||
don't specify their own `container:` — irrelevant here since
|
don't specify their own `container:` — irrelevant here since
|
||||||
`.gitea/workflows/release.yml` always pins its own image, but the runner
|
`.gitea/workflows/release.yml` always pins its own image, but the runner
|
||||||
still needs a Docker-executor label registered to use that executor at
|
still needs a Docker-executor label registered to use that executor at
|
||||||
all. The label name itself (`ubuntu-latest` above) must match `runs-on:`
|
all. The label name itself (`self-hosted`) must match `runs-on:` in
|
||||||
in `.gitea/workflows/release.yml` — edit both together if you rename it,
|
`.gitea/workflows/release.yml` — edit both together if you rename it.
|
||||||
or reuse a label an existing runner already advertises (check Site Admin →
|
|
||||||
Actions → Runners) to skip registering a new one entirely.
|
|
||||||
4. The runner's Docker daemon needs pull access to the registry — run
|
4. The runner's Docker daemon needs pull access to the registry — run
|
||||||
`docker login <registry>` once on that machine with the same credentials
|
`docker login <registry>` once on that machine with the same credentials
|
||||||
as `registry.env`.
|
as `registry.env`.
|
||||||
|
|||||||
Reference in New Issue
Block a user