mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-15 17:26:44 +00:00
98 lines
2.7 KiB
JSON
98 lines
2.7 KiB
JSON
{
|
|
"command": "prepare_job",
|
|
"responseFile": "/users/thboop/runner/_work/{guid}.json",
|
|
"state": {},
|
|
"args": {
|
|
"container": {
|
|
"image": "node:22",
|
|
"workingDirectory": "/__w/repo/repo",
|
|
"createOptions": "--cpus 1",
|
|
"environmentVariables": {
|
|
"NODE_ENV": "development"
|
|
},
|
|
"userMountVolumes": [
|
|
{
|
|
"sourceVolumePath": "my_docker_volume",
|
|
"targetVolumePath": "/volume_mount",
|
|
"readOnly": false
|
|
}
|
|
],
|
|
"systemMountVolumes": [
|
|
{
|
|
"sourceVolumePath": "/var/run/docker.sock",
|
|
"targetVolumePath": "/var/run/docker.sock",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/_work",
|
|
"targetVolumePath": "/__w",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/externals",
|
|
"targetVolumePath": "/__e",
|
|
"readOnly": true
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/_work/_temp",
|
|
"targetVolumePath": "/__w/_temp",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/_work/_actions",
|
|
"targetVolumePath": "/__w/_actions",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/_work/_tool",
|
|
"targetVolumePath": "/__w/_tool",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/_work/_temp/_github_home",
|
|
"targetVolumePath": "/github/home",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"sourceVolumePath": "/Users/thomas/git/runner/_layout/_work/_temp/_github_workflow",
|
|
"targetVolumePath": "/github/workflow",
|
|
"readOnly": false
|
|
}
|
|
],
|
|
"registry": {
|
|
"username": "foo",
|
|
"password": "bar",
|
|
"serverUrl": "https://index.docker.io/v1"
|
|
},
|
|
"portMappings": [
|
|
"80:8080"
|
|
]
|
|
},
|
|
"services": [
|
|
{
|
|
"contextName": "redis",
|
|
"image": "redis",
|
|
"createOptions": "--cpus 1",
|
|
"entrypoint": null,
|
|
"entryPointArgs": [],
|
|
"environmentVariables": {},
|
|
"userMountVolumes": [
|
|
{
|
|
"sourceVolumePath": "/var/run/docker.sock",
|
|
"targetVolumePath": "/var/run/docker.sock",
|
|
"readOnly": false
|
|
}
|
|
],
|
|
"portMappings": [
|
|
"8080:80",
|
|
"8088:8080"
|
|
],
|
|
"registry": {
|
|
"username": "foo",
|
|
"password": "bar",
|
|
"serverUrl": "https://index.docker.io/v1"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |