mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 00:26:44 +00:00
8ea57170d8827fec1cdb71efffb453b952a4d0e3
* added initial entrypoint script * change workingg directory working with addition to fix prepare-job state output * added prepend path * added run-script-step file generation, removed prepend path from container-step and prepare job * latest changes with testing run script step * fix the mounts real fast * cleanup * fix tests * add kind test * add kind yaml to ignore and run it during ci * fix kind option * remove gitignore * lowercase pwd * checkout first! * ignore test file in build.yaml * fixed wrong working directory and added test to run script step testing for the env * handle env's/escaping better * added single quote escape to env escapes * surounded env value with single quote * added spacing around run-container-step, changed examples to actually echo hello world * refactored tests * make sure to escape properly * set addition mounts for container steps * fixup container action mounts Co-authored-by: Thomas Boop <thboop@github.com> Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Runner Container Hooks
The Runner Container Hooks repo provides a set of packages that implement the container hooks feature in the actions/runner. These can be used as is, or you can use them as a guide to implement your own hooks.
More information on how to implement your own hooks can be found in the adr. The examples folder provides example inputs for each hook.
Background
Three projects are included in the packages folder
- k8s: A kubernetes hook implementation that spins up pods dynamically to run a job. More details can be found in the readme
- docker: A hook implementation of the runner's docker implementation. More details can be found in the readme
- hooklib: a shared library which contains typescript definitions and utilities that the other projects consume
Requirements
We welcome contributions. See how to contribute to get started.
License
This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.
Maintainers
See the Codeowners
Support
Find a bug? Please file an issue in this repository using the issue templates.
Code of Conduct
See our Code of Conduct
Languages
TypeScript
96%
JavaScript
4%