mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 16:46:43 +00:00
docker: fix readOnly volumes in createContainer (#236)
This commit is contained in:
@@ -59,7 +59,9 @@ export async function createContainer(
|
|||||||
]
|
]
|
||||||
for (const mountVolume of mountVolumes) {
|
for (const mountVolume of mountVolumes) {
|
||||||
dockerArgs.push(
|
dockerArgs.push(
|
||||||
`-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}`
|
`-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}${
|
||||||
|
mountVolume.readOnly ? ':ro' : ''
|
||||||
|
}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (args.entryPoint) {
|
if (args.entryPoint) {
|
||||||
|
|||||||
Reference in New Issue
Block a user