Jason Song
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 <[email protected] >
2023-06-15 05:27:35 +00:00
sillyguodong and Jason Song
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 <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/201
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: sillyguodong <[email protected] >
Co-committed-by: sillyguodong <[email protected] >
2023-06-15 03:59:15 +00:00
ccureau and ccureau
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 <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/208
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: ccureau <[email protected] >
Co-committed-by: ccureau <[email protected] >
2023-06-12 06:35:27 +00:00
Jason Song
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 <[email protected] >
Reviewed-by: wxiaoguang <[email protected] >
2023-05-06 17:00:52 +08:00
You-Sheng Yang
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 <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/139
Reviewed-by: techknowlogick <[email protected] >
Co-authored-by: You-Sheng Yang <[email protected] >
Co-committed-by: You-Sheng Yang <[email protected] >
2023-04-25 03:15:48 +08:00
Lunny Xiao
a05c5ba3ad
Add make docker ( #115 )
...
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/115
Reviewed-by: techknowlogick <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
Co-committed-by: Lunny Xiao <[email protected] >
2023-04-13 04:17:08 +08:00
Jason Song
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 <[email protected] >
Co-authored-by: Jason Song <[email protected] >
Co-committed-by: Jason Song <[email protected] >
2023-04-04 21:32:04 +08:00
Lunny Xiao
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
Lunny Xiao
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 <[email protected] >
2023-03-14 18:43:05 +08:00
sillyguodong and sillyguodong
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 <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/43
Reviewed-by: delvh <[email protected] >
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: sillyguodong <[email protected] >
Co-committed-by: sillyguodong <[email protected] >
2023-03-13 18:57:35 +08:00
sillyguodong and sillyguodong
552dbcdda9
Add copyright header and gitea-vet ( #29 )
...
Add copyright header
Co-authored-by: sillyguodong <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/29
Reviewed-by: Jason Song <[email protected] >
Reviewed-by: Zettat123 <[email protected] >
Co-authored-by: sillyguodong <[email protected] >
Co-committed-by: sillyguodong <[email protected] >
2023-02-28 18:44:46 +08:00
Lunny Xiao
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
Casey Lee
b3c06dc19d
chore: fix promote script
2023-01-16 09:57:35 -08:00
Casey Lee
872a69548c
chore: makefile update
2023-01-16 09:43:53 -08:00
Casey Lee
003947ea33
chore: push new version
2023-01-16 09:11:29 -08:00
Casey Lee
93907931df
feat: add check for newer versions ( #1562 )
...
* feat: add check for newer versions
* fix: support JSON logger and rever updates to go.mod
* fix: keep version updated in source code
* fix: lint errors
* fix: revert go.*
2023-01-15 10:30:41 +00:00
Bo-Yi.Wu
a3e9bbed25
chore: Add makefile
...
Signed-off-by: Bo-Yi.Wu <[email protected] >
2022-11-24 15:37:09 +08:00
Ryan
9be6a58c0e
ci: replace superlinter with megalinter ( #923 )
...
* ci: replace superlinter with megalinter
Signed-off-by: hackercat <[email protected] >
* fix: apply lint recommendations
Signed-off-by: hackercat <[email protected] >
2021-12-22 09:29:43 -08:00
5bdb9ed0fd
container credentials ( #868 )
...
* Chore: add a snapshot target
* Update: support credentials for private containers
Resolves : #788
* fix: rework container credentials
Signed-off-by: hackercat <[email protected] >
* fix: check if Credentials are not nil
* fix: return on missing credentials key
Co-authored-by: hackercat <[email protected] >
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-27 18:05:56 +00:00
Ryan
5c841e22ab
Update docs, file formatting and docker images ( #766 )
...
* docs: fix wrong licence link
* fix: add more formatting settings, reformat all
feat: add vscode extensions recommendations
* docs: update contributing documentation
* fix: remove unnecessary comment
it was due to broken checkout
* docs: rework installation section
it has been brought up few times, new style should be easier
to understand
* docs: update images provided by catthehacker
* docs: replace 18.04 with recent image
* fix: add final new line
2021-08-09 09:07:26 -07:00
Ryan (hackercat) and Casey Lee
cec63488f3
Add super-linter + fix lint issues ( #650 )
...
* feat: bump `golangci-lint`, add `super-linter`, replace outdated linter
Bump `golangci-lint` version.
Add `super-linter` to lint other languages.
Go linter is disabled because it's currently broken:
https://github.com/github/super-linter/pull/370
Replacing `scopelint` with `exportloopref`: "[runner] The linter
'scopelint' is deprecated (since v1.39.0) due to: The repository of the
linter has been deprecated by the owner. Replaced by exportloopref."
Fixed formatting in `.golangci.yml`
Add addtional linters:
`misspell`: purely style, detects typos in comments
`whitespace`: detects leading and trailing whitespace
`goimports`: it's gofmt + checks unused imports
* fix: lint/fix `go` files
* fix: lint with `standardjs`
* fix: lint/fix with `markdownlint`, make template more verbose
* feat: add lint stuff to makefile
* fix: `UseGitIgnore` formatting
* fix: lint/fix `README.md`
Co-authored-by: Casey Lee <[email protected] >
2021-05-03 09:52:03 -07:00
Josh Soref
465fbba7d1
Handle tagless versions ( #606 )
...
Average case:
git describe --tags
v0.2.9-130-g47e1ba1
git describe --tags --dirty --always | cut -c 2-
0.2.9-130-g47e1ba1
git describe --tags --dirty --always | sed -e s/^v//
47e1ba1
Edge case (no tags):
git describe --tags --dirty --always
47e1ba1
git describe --tags --dirty --always | cut -c 2-
7e1ba1
-- this is undesirable
2021-04-05 08:53:06 -07:00
Josh Soref and Casey Lee
5752a03dcd
Support running commands in repositories without action.yaml ( #293 )
...
* Comment for public function
* Add git describe fallback
* spelling: github
* Set initial branch to satisfy tests for modern git
* Clarify -even- if
* Go 1.16
* Support running commands in repositories without action.yaml
Support runnings commands with only a Docker file
Co-authored-by: Casey Lee <[email protected] >
2021-03-30 12:26:25 -07:00
Javier Romero
729adec5e5
Fix path for local node12 actions ( #371 )
...
Fixes #185
Signed-off-by: Javier Romero <[email protected] >
2020-09-29 13:39:45 -07:00
Tom Payne
32c41d22d6
Fix test target ( #375 )
...
* Fix test target
* Run Go tests in test target
2020-09-28 12:03:35 -07:00
Owen
1070c58538
feat: support custom GITHUB_RUN_ID, GITHUB_RUN_NUMBER ( #369 )
...
* feat: add fromJSON support
* feat: support custom runId and runNumber
* chore: manual update
* chore: lint
2020-09-22 14:13:29 -07:00
Nicholas Nadeau
35d79c7215
Added PHONY targets
2020-07-26 09:01:01 -04:00
Dario Vladović
f00aa08417
Support PREFIX environment variable ( #308 )
2020-07-20 07:33:29 -07:00
Casey Lee
bd6f232b20
fix build for windows
2020-03-06 17:08:07 -08:00
Casey Lee
76a8bfc4fc
fix #89 - support .actrc file
2020-02-24 22:11:33 -08:00
Casey Lee
d54b25d983
makefile cleanups
2020-02-24 15:04:33 -08:00
Casey Lee
3a65967b95
ci cleanup
2020-02-24 14:43:03 -08:00
Casey Lee
3dd50dfe28
default task for Makefile
...
Signed-off-by: Casey Lee <[email protected] >
2020-02-20 21:06:11 -05:00
Casey Lee
09773f7c5c
fix tests
...
Signed-off-by: Casey Lee <[email protected] >
2020-02-20 21:05:57 -05:00
Casey Lee
0582306861
unit tests
...
Signed-off-by: Casey Lee <[email protected] >
2020-02-20 21:05:31 -05:00
Dan Sosedoff
5330599c93
Capture errors from docker log output
...
- Refactored logDockerResponse function to remove extra if-else nesting
- logDockerResponse func now returns an error if error was detected from the log stream
- logDockerResponse will check for msg.ErrorDetail.Message and bail if there's an error
2019-03-01 21:16:43 -06:00
Casey Lee
de62a2eece
resolve issues with release action
2019-02-07 09:50:30 -08:00
Casey Lee
7b012832b4
issue with patterns and vendor directory
2019-02-07 09:39:04 -08:00
Casey Lee
4b61fb3bc3
pin to v1.0.0 of github action parser
2019-02-06 22:36:16 -08:00
Casey Lee
320e9b6057
fail on error ( #20 )
...
ci-via-github-actions
2019-01-23 11:51:22 -08:00
Casey Lee
8793c8a6a4
add support for 'reuse' mode to allow act to be used for a fast local task runner
2019-01-17 14:53:35 -08:00
Casey Lee
6f07c10d8c
improve linting
2019-01-15 17:41:02 -08:00
Casey Lee
f683af5954
Initial commit with support for GitHub actions
2019-01-12 20:45:25 -08:00