From b9bf00d3297cb909586e74c95465d47d69b7e535 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Thu, 28 Mar 2019 12:20:08 +0000 Subject: [PATCH] Support nocache flag in push Change-type: patch Closes: #1128 Signed-off-by: Cameron Diver --- lib/actions/push.ts | 1 + lib/utils/device/deploy.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/actions/push.ts b/lib/actions/push.ts index 54ed1e61..f4787643 100644 --- a/lib/actions/push.ts +++ b/lib/actions/push.ts @@ -229,6 +229,7 @@ export const push: CommandDefinition< source, deviceHost: device, registrySecrets, + nocache: options.nocache || false, }), ) .catch(BuildError, e => { diff --git a/lib/utils/device/deploy.ts b/lib/utils/device/deploy.ts index 146fda78..b7cb4eca 100644 --- a/lib/utils/device/deploy.ts +++ b/lib/utils/device/deploy.ts @@ -43,6 +43,7 @@ export interface DeviceDeployOptions { deviceHost: string; devicePort?: number; registrySecrets: RegistrySecrets; + nocache: boolean; } async function checkSource(source: string): Promise { @@ -236,6 +237,7 @@ async function assignDockerBuildOpts( 'io.resin.local.service': task.serviceName, }, t: generateImageName(task.serviceName), + nocache: opts.nocache, }; if (task.external) { task.dockerOpts.authconfig = await getAuthConfigObj(