mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-17 18:26:44 +00:00
docker apply env on commands where we are using '-e' (#11)
* added wrapper for docker -e to apply env * added envs around services as well * added wrapping environment around execute command * fixed setting the env variable for containerRun * added env to exec and not to handle envs by ourself * returned back the comment to run-container-step
This commit is contained in:
@@ -48,6 +48,7 @@ export async function prepareJob(
|
||||
} finally {
|
||||
await registryLogout(configLocation)
|
||||
}
|
||||
|
||||
containerMetadata = await createContainer(
|
||||
container,
|
||||
generateContainerName(container.image),
|
||||
@@ -78,6 +79,7 @@ export async function prepareJob(
|
||||
generateContainerName(service.image),
|
||||
networkName
|
||||
)
|
||||
|
||||
servicesMetadata.push(response)
|
||||
await containerStart(response.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user