act/pkg/container
Björn Brauer 4391a10d5a
Improve logging (#1171)
* feat: use logger from context wherever possible

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: add step/job id and results to json logs

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* test: value to be masked should not be hard-coded in the action

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* fix: replace values following ::add-mask:: in evaluated strings

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: [DEBUG] identifier for debug logs to distinguish them

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: replace logger with step logger

The container gets injected a job logger, but during the time that steps
are run, we want to use the step logger.
This commit wraps pre/main/post steps in an executor that replaces the
job logger with a step logger.

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: add pre/post stage identifier fields to json log output

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

* feat: add job/step result status to skipped steps/jobs

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-06-17 15:55:21 +00:00
..
testdata Docker auth (#891) 2021-11-27 18:21:32 +00:00
docker_auth.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
docker_build.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
docker_images.go Close docker client (#789) 2021-10-24 16:50:43 +00:00
docker_images_test.go feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
docker_logger.go Fixes (#856) 2021-11-03 11:47:09 -07:00
docker_pull.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
docker_pull_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
docker_run.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
docker_run_test.go feat: handle context cancelation during docker exec (#1170) 2022-05-24 14:52:25 +00:00
docker_volume.go Close docker client (#789) 2021-10-24 16:50:43 +00:00
file_collector.go refactor: remove github.com/pkg/errors dependency (#1077) 2022-06-10 21:16:42 +00:00
file_collector_test.go fix: copy ignored tracked files (#1074) 2022-04-04 15:27:00 +00:00