Watch
0
0
Fork
You've already forked hyperhive
0

forgejo: actionsFromSelf defaults to true

This commit is contained in:
atlas 2026-10-05 12:44:42 +02:00 • committed by mara
commit 80bc92fb49
4 changed files with 11 additions and 8 deletions

View file

@ -169,8 +169,8 @@ the forge admin panel as offline until an admin deletes it.
<!-- vale write-good.Passive = NO --> <!-- vale write-good.Passive = NO -->
With `services.hyperhive.deploy.forgejo.actionsFromSelf` set on the forge's With `services.hyperhive.deploy.forgejo.actionsFromSelf` enabled (the default)
host, the swarm controller seeds an `actions/checkout` pull-mirror on the forge on the forge's host, the swarm controller seeds an `actions/checkout` pull-mirror on the forge
and Forgejo's `DEFAULT_ACTIONS_URL` points at the forge itself. CI and Forgejo's `DEFAULT_ACTIONS_URL` points at the forge itself. CI
`uses: actions/checkout@vN` steps then resolve on the forge, with no external `uses: actions/checkout@vN` steps then resolve on the forge, with no external
DNS on the CI critical path. DNS on the CI critical path.

View file

@ -53,8 +53,8 @@ let
The runner registers as a new runner on the forge, so delete the old The runner registers as a new runner on the forge, so delete the old
one in the forge's admin panel (Site administration, Actions, Runners). one in the forge's admin panel (Site administration, Actions, Runners).
To keep resolving `uses: actions/checkout` from the forge, set The forge keeps resolving `uses: actions/checkout` from itself unless
services.hyperhive.deploy.forgejo.actionsFromSelf = true on its host. services.hyperhive.deploy.forgejo.actionsFromSelf is false on its host.
See docs/scheduler/ci.md. See docs/scheduler/ci.md.
''; '';
in in

View file

@ -175,14 +175,15 @@ in
failure on whatever reads it. failure on whatever reads it.
With {option}`services.hyperhive.deploy.forgejo.actionsFromSelf` With {option}`services.hyperhive.deploy.forgejo.actionsFromSelf`
set, an `actions/checkout` mirror is appended to this list. enabled (the default), an `actions/checkout` mirror is appended to
this list.
''; '';
}; };
actionsFromSelf = lib.mkOption { actionsFromSelf = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = true;
example = true; example = false;
description = '' description = ''
Resolve a workflow's `uses: <org>/<action>@vN` against this forge Resolve a workflow's `uses: <org>/<action>@vN` against this forge
instead of `data.forgejo.org`, and add an `actions/checkout` instead of `data.forgejo.org`, and add an `actions/checkout`
@ -191,7 +192,8 @@ in
checkout then needs no external DNS; only the mirror's re-sync checkout then needs no external DNS; only the mirror's re-sync
does. does.
Any other action a workflow names has to be mirrored here too. Any other action a workflow names has to be mirrored here too. Set to
`false` to resolve actions from `data.forgejo.org` and seed no mirror.
''; '';
}; };

View file

@ -110,6 +110,7 @@ let
deploy.swarm-controller.enable = true; deploy.swarm-controller.enable = true;
deploy.forgejo.enable = true; deploy.forgejo.enable = true;
deploy.forgejo.mirrors = [ aMirror ]; deploy.forgejo.mirrors = [ aMirror ];
deploy.forgejo.actionsFromSelf = false;
c0re.orgAvatarPng = "/etc/marker-avatar.png"; c0re.orgAvatarPng = "/etc/marker-avatar.png";
}; };
mirrorsNoController = hive { mirrorsNoController = hive {