Jason Song
7e7096e60b
Refactor environment variables to configuration and registration ( #90 )
...
Close #21 .
Refactor environment variables to configuration file (config.yaml) and registration file (.runner).
The old environment variables are still supported, but warning logs will be printed.
Like:
```text
$ GITEA_DEBUG=true ./act_runner -c config.yaml daemon
INFO[0000] Starting runner daemon
WARN[0000] env GITEA_DEBUG has been ignored because config file is used
$ GITEA_DEBUG=true ./act_runner daemon
INFO[0000] Starting runner daemon
WARN[0000] env GITEA_DEBUG will be deprecated, please use config file instead
```
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/90
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-04-02 22:41:48 +08:00
Lunny Xiao
c8fad20f49
handle possible panic ( #88 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/88
Reviewed-by: Jason Song <i@wolfogre.com>
2023-03-28 23:51:38 +08:00
sillyguodong
552dbcdda9
Add copyright header and gitea-vet ( #29 )
...
Add copyright header
Co-authored-by: sillyguodong <gedong_1994@163.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/29
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io>
Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io>
Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io>
2023-02-28 18:44:46 +08:00
Jason Song
6d2200b3d6
Rename to actions ( #7 )
...
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/7
2022-12-06 16:37:38 +08:00
Jason Song
2354f5bb18
feat: use specified labels
2022-11-24 15:38:21 +08:00
Jason Song
5781e233c1
fix: limit workers
2022-11-24 15:38:20 +08:00
Jason Song
44988db9f8
chore: replace with code.gitea.io/bots-proto-go
2022-11-24 15:38:15 +08:00
Bo-Yi.Wu
e9e42e850b
chore(runner): remove update runner status
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:38:12 +08:00
Bo-Yi Wu
cab56996b7
fix(poller): initial ready channel
2022-11-24 15:38:08 +08:00
Bo-Yi Wu
a13ed0c52e
feat(poller): support scheduler to fetch task and dispatch to worker
2022-11-24 15:38:07 +08:00
Bo-Yi Wu
9830f34d36
fix(poller): graceful shutdown
2022-11-24 15:38:01 +08:00
Bo-Yi Wu
abdb547b1b
chore(poller): add metric to track the worker number
...
Add metric to track multiple task.
2022-11-24 15:37:53 +08:00
Bo-Yi Wu
d1114da299
chore(runner): wait workflow done before shutdown the service
2022-11-24 15:37:52 +08:00
Bo-Yi.Wu
e08495af09
chore(runner): remove client secret and add UUID in runner
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:38 +08:00
Bo-Yi.Wu
a503f7429f
chore(runner): add new register command
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:36 +08:00
Jason Song
cce60d466b
fix: need more time to run task
2022-11-24 15:37:35 +08:00
Bo-Yi Wu
7bebd2bbad
chore(runner): update runner status when start job
2022-11-24 15:37:34 +08:00
Bo-Yi Wu
d4c1515f4e
chore(runner): update runner status if start program
2022-11-24 15:37:32 +08:00
fuxiaohei
45b0429b21
chore(poller): add error retry limit
2022-11-24 15:37:30 +08:00
Bo-Yi Wu
dada0730b0
chore(runner): add default label ""self-hosted"
...
see https://docs.github.com/en/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow#using-default-labels-to-route-jobs
2022-11-24 15:37:27 +08:00
Bo-Yi.Wu
c161a48a0a
chore(register): update proto file.
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:26 +08:00
Bo-Yi.Wu
3a1503138b
chore(runner): refactor register flow
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:24 +08:00
Bo-Yi.Wu
7486d2ab91
chore(runner): update fetch job request
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:22 +08:00
Bo-Yi.Wu
82431d8e11
chore(runner): support update log and task
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:21 +08:00
Bo-Yi.Wu
d3d56ed0ef
chore(runtime): fetch build data
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:17 +08:00
Bo-Yi.Wu
631f801aa6
chore(gRPC): fetch new stage data.
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:16 +08:00
fuxiaohei
6030610c04
feat: task can report step and final result
2022-11-24 15:37:14 +08:00
Bo-Yi.Wu
f2fb8798fa
chore(gRPC): add request interface client
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:11 +08:00
Bo-Yi.Wu
449388f3ab
chore(gRPC): register new runner
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:10 +08:00
GiteaBot
aa765ea4d0
chore(go): rename module name
...
Signed-off-by: GiteaBot <teabot@gitea.io>
2022-11-24 15:37:03 +08:00
GiteaBot
307c2c63de
chore(proto): replace import path.
...
Signed-off-by: GiteaBot <teabot@gitea.io>
2022-11-24 15:37:02 +08:00
Bo-Yi Wu
7d55fd57c9
chore(piepline): add runtime package.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-11-24 15:37:01 +08:00
Bo-Yi Wu
bca586ffd0
chore: Add time sleep 1 second.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-11-24 15:36:58 +08:00
Bo-Yi Wu
d359276fe1
chore(client): support gRPC and gRPC web protocol
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-11-24 15:36:57 +08:00
Bo-Yi Wu
0b885c5e5f
chore(poller): Add poller package
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-11-24 15:36:56 +08:00