mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 16:46:43 +00:00
Fix argument order for 'docker pull' (#85)
The optional --config option must come *before* the pull argument.
This commit is contained in:
@@ -91,11 +91,12 @@ export async function containerPull(
|
|||||||
image: string,
|
image: string,
|
||||||
configLocation: string
|
configLocation: string
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const dockerArgs: string[] = ['pull']
|
const dockerArgs: string[] = []
|
||||||
if (configLocation) {
|
if (configLocation) {
|
||||||
dockerArgs.push('--config')
|
dockerArgs.push('--config')
|
||||||
dockerArgs.push(configLocation)
|
dockerArgs.push(configLocation)
|
||||||
}
|
}
|
||||||
|
dockerArgs.push('pull')
|
||||||
dockerArgs.push(image)
|
dockerArgs.push(image)
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 3; i++) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user