5ae13f0bd7
Update xgo version to 1.24 ( #651 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/651
Co-authored-by: Pablo Carranza <pcarranza@gmail.com >
Co-committed-by: Pablo Carranza <pcarranza@gmail.com >
2025-02-15 16:07:18 +00:00
3510152e36
Fix Makefile make docker ( #641 )
...
Fix #640
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/641
2025-01-29 03:27:47 +00:00
316534996a
Build docker image gitea/act_runner/x.y.z-dind-rootless
( #239 )
...
Follow #208
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/239
Reviewed-by: Zettat123 <zettat123@noreply.gitea.com >
2023-06-15 05:27:35 +00:00
67b1363d25
Support changing labels ( #201 )
...
Implement proposal: https://github.com/go-gitea/gitea/issues/24540
Related:
- Protocol: https://gitea.com/gitea/actions-proto-def/pulls/9
- Gitea side: https://github.com/go-gitea/gitea/pull/24806
Co-authored-by: Jason Song <i@wolfogre.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/201
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: sillyguodong <gedong_1994@163.com >
Co-committed-by: sillyguodong <gedong_1994@163.com >
2023-06-15 03:59:15 +00:00
341d49a24d
implement act_runner rootless image ( #208 )
...
This PR creates a rootless Docker image that runs both `dockerd` and `act_runner` using `supervisord`. It has been tested locally for a few days and seems stable.
Co-authored-by: ccureau <ccureau@noreply.gitea.io >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/208
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: ccureau <ccureau@noreply.gitea.com >
Co-committed-by: ccureau <ccureau@noreply.gitea.com >
2023-06-12 06:35:27 +00:00
de4160b023
Skip counting log length when parseLogRow return nil ( #176 )
...
Fix:

Regression of #149 , `LogLength` could be incorrect.
It may be related to https://github.com/go-gitea/gitea/issues/24458
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/176
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io >
Reviewed-by: wxiaoguang <wxiaoguang@noreply.gitea.io >
2023-05-06 17:00:52 +08:00
43c5ba923f
make: skip --disable-content-trust at docker buildx ( #139 )
...
`docker build` may be aliased as `docker buildx build`, which doesn't support --disable-content-trust switch.
Signed-off-by: You-Sheng Yang <vicamo@gmail.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/139
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
Co-authored-by: You-Sheng Yang <vicamo@gmail.com >
Co-committed-by: You-Sheng Yang <vicamo@gmail.com >
2023-04-25 03:15:48 +08:00
a05c5ba3ad
Add make docker ( #115 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/115
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-04-13 04:17:08 +08:00
220efa69c0
Refactor to new framework ( #98 )
...
- Adjust directory structure
```text
├── internal
│ ├── app
│ │ ├── artifactcache
│ │ ├── cmd
│ │ ├── poll
│ │ └── run
│ └── pkg
│ ├── client
│ ├── config
│ ├── envcheck
│ ├── labels
│ ├── report
│ └── ver
└── main.go
```
- New pkg `labels` to parse label
- New pkg `report` to report logs to Gitea
- Remove pkg `engine`, use `envcheck` to check if docker running.
- Rewrite `runtime` to `run`
- Rewrite `poller` to `poll`
- Simplify some code and remove what's useless.
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/98
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Jason Song <i@wolfogre.com >
Co-committed-by: Jason Song <i@wolfogre.com >
2023-04-04 21:32:04 +08:00
63a57edaa3
check go version when build ( #53 )
...
Fix #51
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/53
2023-03-16 11:37:08 +08:00
71f470d670
Fix make don't rebuild when go.mod changed ( #49 )
...
Fix #13
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/49
Reviewed-by: delvh <dev.lh@web.de >
2023-03-14 18:43:05 +08:00
0d71463662
Inject version when building and report version to Gitea via log and header ( #43 )
...
close #42
1. Inject runner version when `make build`
After building, executing command line: `./act_runner -v` or `./act_runner --version`, the version of runner is printed.

2. In `Actions` UI:

3. Set request header in http client interceptor.
Co-authored-by: sillyguodong <gedong_1994@163.com >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/43
Reviewed-by: delvh <dev.lh@web.de >
Reviewed-by: Jason Song <i@wolfogre.com >
Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io >
Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io >
2023-03-13 18:57:35 +08:00
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
a4513405b5
Enable action as CI to test/build/release ( #26 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/26
2023-02-24 23:30:09 +08:00
a3e9bbed25
chore: Add makefile
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com >
2022-11-24 15:37:09 +08:00