feat: don't require docker #16
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#16
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch ":docker_is_optional"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The only reason docker is really required by now, is that act_runner ping docker.
This change only pings docker if a label with
docker://
is added to the runner.Plain labels without
:
likeself-hosted
are run directly on the system. Previously the pseudo non docker label-self-hosted
have been required like thisself-hosted:docker://-self-hosted
, but due to docker ping this still required a dockerd to be pingable.@ -123,2 +122,4 @@
if len(values) > 2 {
return fmt.Errorf("Invalid label: %s", label)
}
// len(values) == 1, label for non docker execution environment
label for non docker execution environment (self-hosted)
@ -29,3 +30,4 @@
for _, l := range s.Labels {
// "ubuntu-18.04:docker://node:16-buster"
splits := strings.SplitN(l, ":", 2)
if len(splits) == 1 {
== 1 { // only the "self-hosted" label is allowed without :
Are you suggesting to adding the comment? I'm not 100% shure what you mean, because you can also use
ubuntu-latest
if you want to run these labels without docker.Okay, yeah, I thought this would only apply to the
self-hosted
label.@ChristopherHX please update the branch
5df468aa05
toc142cda688
Done.
wolfogre referenced this pull request2023-03-23 09:12:34 +00:00