cleared registry for testing

This commit is contained in:
Nikola Jokic
2022-06-08 17:13:43 +02:00
11 changed files with 229 additions and 169 deletions

View File

@@ -2,11 +2,9 @@ import * as core from '@actions/core'
import * as fs from 'fs'
import {
ContainerInfo,
JobContainerInfo,
Registry,
RunContainerStepArgs,
ServiceContainerInfo,
StepContainerInfo
ServiceContainerInfo
} from 'hooklib/lib'
import * as path from 'path'
import { env } from 'process'
@@ -52,7 +50,7 @@ export async function createContainer(
const mountVolumes = [
...(args.userMountVolumes || []),
...((args as JobContainerInfo | StepContainerInfo).systemMountVolumes || [])
...(args.systemMountVolumes || [])
]
for (const mountVolume of mountVolumes) {
dockerArgs.push(
@@ -345,8 +343,9 @@ export async function containerExecStep(
dockerArgs.push(`"${key}"`)
}
// Todo figure out prepend path and update it here
// (we need to pass path in as -e Path={fullpath}) where {fullpath is the prepend path added to the current containers path}
if (args.prependPath?.length) {
dockerArgs.push('-e', `"PATH=${args.prependPath.join(':')}:$PATH"`)
}
dockerArgs.push(containerId)
dockerArgs.push(args.entryPoint)