Commit graph

592 commits

Author SHA1 Message Date
048450dee9 current state: Not Working... at all
I was tweaking the entrypoint and now its like it just randomly drops env-vars or fails to read them *no reason* despite them being confirmed to exist via other methods (manual running of commands within container, sanity checking in the entrypoint)
2024-12-26 18:15:54 +00:00
c7098ae0f6 getting there... 2024-12-26 01:00:01 +00:00
8fa6e368c4 tweak tests 2024-12-26 00:43:39 +00:00
709e1518d6 update tests 2024-12-26 00:26:24 +00:00
1e466136c9 update tests 2024-12-26 00:03:48 +00:00
e9634ef5fb Env-to-config works 2024-12-25 23:46:40 +00:00
676f16b16a commit current env2var work 2024-12-25 22:58:57 +00:00
Merith
7d611fc32a work around env file not loaded 2024-12-25 20:12:42 +00:00
c6401d5197 force perms on /srv/runner-data 2024-12-25 20:12:42 +00:00
Merith
38a43e67ed pass tests, allow drop in replacement
restore original variables
update to include privileged variable
treat `command` as a command and not an argument to entrypoint
2024-12-25 20:12:42 +00:00
Merith
27bbc83fed dont use root-user by default 2024-12-25 20:12:42 +00:00
b165aeab81 I guess it works now
sorry for the unprofessional commit message, I have been working on this effectively non-stop since the previous commit, and have been fighting docker networking being inconsistent as well as filepermisson issues,

end me
2024-12-25 20:12:42 +00:00
485cde5568 echo, not secho 2024-12-25 20:12:42 +00:00
Merith
9252e5d667 remove rootless dockerfile, updatedate entrypoint, update docker compose
Removed the rootless dockerfile as upon further investigation into how a `rootless` container works, the entrypoint that has been written fully accomodates that

to reflect this the compose file has had the rootless config removed from it as it is no longer needed to test a seperate container image,

added a debug echo function `decho` to the entrypoint, when `DEBUG=true` it will print "[entrypoint] message content"

added a 10 second wait to the entrypoint to allow other services such as docker-in-docker and forgejo to finish launching before the runner is launched, this is bypassable by `SKIP_WAIT=true`

applied several modifications requested by viceice,
2024-12-25 20:12:42 +00:00
Merith
2cf2bdeb75 revert changes to workflow 2024-12-25 20:12:42 +00:00
Merith
b13eec8fde disabled TLS in example,
not needed for a closed docker network
2024-12-25 20:12:42 +00:00
Merith
ba8fc919ec update entrypoint and dockerfile, fix test workflow
update dockerfile,

rework entrypoint execution,

update compose and test
2024-12-25 20:12:40 +00:00
Merith
2b990ce240 push example docker-compose for runner and forgejo 2024-12-25 20:11:51 +00:00
Merith
a8066c365e add a root-user check, clean up some formatting 2024-12-25 20:11:51 +00:00
Merith
6308afc42e address dockerfile feedback, further work on entrypoint 2024-12-25 20:11:51 +00:00
db1f675e50 basic entrypoint, automatic registration of runner works 2024-12-25 20:11:51 +00:00
earl-warren
64df715d73 Merge pull request 'Update module google.golang.org/protobuf to v1.36.1' (#397) from renovate/google.golang.org-protobuf-1.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/397
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-24 11:20:20 +00:00
Renovate Bot
b5ce1ccb8a
Update module google.golang.org/protobuf to v1.36.1 2024-12-24 00:02:25 +00:00
earl-warren
45f9c1f948 Merge pull request 'Update actions/cascading-pr action to v2' (#395) from renovate/actions-cascading-pr-2.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/395
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-18 07:44:17 +00:00
Renovate Bot
6901b83a9d
Update actions/cascading-pr action to v2 2024-12-17 14:31:19 +00:00
Michael Kriese
3ee89c08b5 Merge pull request 'Replace actions/cascading-pr action with actions/cascading-pr v1.0.1' (#394) from renovate/actions-cascading-pr-replacement into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/394
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-17 09:57:48 +00:00
viceice
44227666ba ci: add explicit url
Signed-off-by: viceice <michael.kriese@gmx.de>
2024-12-17 08:17:29 +00:00
Renovate Bot
521e3f1188
Replace actions/cascading-pr action with actions/cascading-pr v1.0.1 2024-12-17 08:00:55 +00:00
earl-warren
227c2b2dc1 Merge pull request 'Update forgejo/forgejo-build-publish action to v5.2.1' (#393) from renovate/forgejo-forgejo-build-publish-5.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/393
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-17 06:37:02 +00:00
Renovate Bot
bfc83035a6
Update forgejo/forgejo-build-publish action to v5.2.1 2024-12-17 06:32:58 +00:00
earl-warren
95a8d9530e Merge pull request 'Update module google.golang.org/protobuf to v1.36.0' (#392) from renovate/google.golang.org-protobuf-1.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/392
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-17 05:46:19 +00:00
Renovate Bot
24210fe55d
Update module google.golang.org/protobuf to v1.36.0 2024-12-17 00:02:07 +00:00
earl-warren
c9265044b5 Merge pull request 'Rebrand container prefix to Forgejo' (#377) from fnetx/rebrand-prefix into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/377
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-15 07:42:00 +00:00
earl-warren
f1b80e2e99 Merge pull request 'chore(release): fix the link to the release notes' (#391) from earl-warren/runner:wip-release into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/391
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-15 07:41:24 +00:00
Earl Warren
477e949997
chore(release): fix the link to the release notes 2024-12-14 04:31:06 +01:00
earl-warren
5a14247c19 Merge pull request 'feat: use FORGEJO_TOKEN as runtime token' (#389) from xtex/runner:forgejo-token into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/389
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-14 03:30:03 +00:00
xtex
3068bebfcb
feat: use FORGEJO_TOKEN as runtime token
Link: https://codeberg.org/forgejo/forgejo/pulls/6199
2024-12-13 20:24:01 +08:00
Otto Richter
a2ce5d9f8b
Rebrand container prefix to Forgejo 2024-12-09 16:21:04 +01:00
Michael Kriese
e238532feb Merge pull request 'Update dependency forgejo-lxc to v12' (#373) from renovate/forgejo-lxc-12.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/373
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-09 15:19:48 +00:00
Renovate Bot
f351e7a7b1
Update dependency forgejo-lxc to v12 2024-12-09 14:31:33 +00:00
earl-warren
f5087573da Merge pull request 'Update actions/setup-forgejo action to v2' (#374) from renovate/actions-setup-forgejo-2.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/374
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-09 09:36:28 +00:00
Renovate Bot
81422b4515
Update actions/setup-forgejo action to v2 2024-12-07 15:00:54 +00:00
Michael Kriese
3f8cadc0fe Merge pull request 'ci: pin setup forgejo action' (#372) from ci/pin-setuo-forgejo-action into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/372
2024-12-07 14:10:03 +00:00
Michael Kriese
191259d7c3
ci: pin setup forgejo action 2024-12-07 14:23:22 +01:00
earl-warren
de2e4c21aa Merge pull request 'Update module github.com/docker/docker to v25.0.7+incompatible' (#370) from renovate/github.com-docker-docker-25.x into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/370
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-07 07:14:19 +00:00
Renovate Bot
79f6adc4d2
Update module github.com/docker/docker to v25.0.7+incompatible 2024-12-07 00:01:14 +00:00
Michael Kriese
f3bcb0e57a Merge pull request 'ci: use new ci image' (#361) from ci/use-ci-image into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/361
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-12-06 13:23:21 +00:00
Michael Kriese
b34efbce8b
ci: use new ci image 2024-12-04 21:02:16 +01:00
Michael Kriese
6c0527e8f7 Merge pull request 'Update dependency go to v1.23.4' (#363) from renovate/patch-golang-packages into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/363
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-04 13:56:01 +00:00
Renovate Bot
7f22a720ad
Update dependency go to v1.23.4 2024-12-04 11:31:26 +00:00