Commit Graph
13 Commits
Author SHA1 Message Date
Lunny XiaoandJason Song f1869f70b9 Allow request an insecure gitea server (#18)
When deploy a Gitea server with a self-signed HTTPS certification. Runner will be failed when connect to Gitea server. This PR will fix that to allow ignore the HTTPS certification verification.

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/18
Reviewed-by: Jason Song <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-committed-by: Lunny Xiao <[email protected]>
2023-02-15 16:51:14 +08:00
Jason SongandJason Song 8996b9b0e4 Disable HTTP/2 (#4)
We use [connect-go](https://github.com/bufbuild/connect-go) instead of [grpc-go](https://github.com/grpc/grpc-go) because connect-go support HTTP/1.1, that means we can mount the gRPC api on the Gitea server without change the protocol.

So it doesn't make sense that make the runner support both HTTP/1.1 and HTTP/2, and [upgrade the protocol used on Gitea](
https://github.com/wolfogre/gitea/blob/ae018b6b4864dfb5528df276755167be27b13148/modules/graceful/server_http.go#L23) to support HTTP/2 and h2c. Although it works right now, I believe there'll be lots of problems when the Gitea server is behind a reverse proxy.

So let's KISS, we don't touch the http protocol of Gitea, and disable HTTP/2 for runner. And we would support HTTP/2 in the future if we really need it.

Co-authored-by: Jason Song <[email protected]>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/4
2022-11-29 10:35:59 +08:00
Jason Song 2354f5bb18 feat: use specified labels 2022-11-24 15:38:21 +08:00
Lunny XiaoandJason Song 5fc35faf17 Support bot site 2022-11-24 15:38:06 +08:00
fuxiaoheiandJason Song bfcc6f56f3 feat(cli): make register interactive stages working 2022-11-24 15:38:05 +08:00
Lunny XiaoandJason Song 222b5100b6 add new envs 2022-11-24 15:37:48 +08:00
Bo-Yi.WuandJason Song d178051832 chore(runner): add new token in header
Signed-off-by: Bo-Yi.Wu <[email protected]>
2022-11-24 15:37:43 +08:00
Lunny XiaoandJason Song 378966e45f add forgeinstance 2022-11-24 15:37:40 +08:00
Bo-Yi.WuandJason Song e08495af09 chore(runner): remove client secret and add UUID in runner
Signed-off-by: Bo-Yi.Wu <[email protected]>
2022-11-24 15:37:38 +08:00
Bo-Yi.WuandJason Song bf5e3dc302 chore(runner): add runner uuid in http header.
Signed-off-by: Bo-Yi.Wu <[email protected]>
2022-11-24 15:37:37 +08:00
Bo-Yi.WuandJason Song a503f7429f chore(runner): add new register command
Signed-off-by: Bo-Yi.Wu <[email protected]>
2022-11-24 15:37:36 +08:00
Bo-Yi.WuandJason Song c161a48a0a chore(register): update proto file.
Signed-off-by: Bo-Yi.Wu <[email protected]>
2022-11-24 15:37:26 +08:00
Bo-Yi.WuandJason Song 3a1503138b chore(runner): refactor register flow
Signed-off-by: Bo-Yi.Wu <[email protected]>
2022-11-24 15:37:24 +08:00