Self Hosted Gitea and act_runner running same box #320
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#320
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Hey,
I'm trying to run Gitea and act_runner on the same machine and trying to follow this example of how to use the action:
https://www.alexedwards.net/blog/ci-with-go-and-github-actions
I followed it and I keep getting an error when it gets to the uses: actions/setup-go@v2.
git(version:v0.2.4) received task 10 of job 10, be triggered by event: push
workflow prepared
evaluating expression 'success()'
expression 'success()' evaluated to 'true'
☁ git clone 'https://gitea.domainz.dev/actions/checkout' # ref=v3
cloning https://gitea.domainz.dev/actions/checkout to /root/.cache/act/actions-checkout@v3
Unable to clone https://gitea.domainz.dev/actions/checkout refs/heads/v3: repository not found
repository not found
skipping post step for 'Set up Go'; step was not executed
skipping post step for 'actions/checkout@v3'; step was not executed
Cleaning up services for job audit
Cleaning up container for job audit
🏁 Job failed
repository not found
I don't have actions/checkout or anything in that location ? should I?
https://docs.gitea.com/next/administration/config-cheat-sheet#actions-actions
Are you set
DEFAULT_ACTIONS_URL
set toself
?Yes, I did.
I then tried to mirror the repo too. That didn't worth ?
If you don't have any special needs, I suggest not changing
DEFAULT_ACTIONS_URL
toself
, just leave it empty. Or you have to do some extra work, such as mirroring the repo and making sure it's public.Is the workflow able to resolve the IP address for
gitea.domainz.dev
? What is the output if you add these steps before the checkout step?Are your workflows running in Docker? If so you should add
options: --add-host=gitea.domainz.dev:host-gateway
to your act runner configureation file like I did here. This ways containers run by act-runner will use the docker bridge address to access the gitea instance.For reference, the ansible role I linked above gives a working act-runner setup with the gitea instance running on the same host.