Support nocache flag in push <ip>

Change-type: patch
Closes: #1128
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-03-28 12:20:08 +00:00
parent 5ae7457f45
commit b9bf00d329
No known key found for this signature in database
GPG Key ID: 49690ED87032539F
2 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,7 @@ export const push: CommandDefinition<
source,
deviceHost: device,
registrySecrets,
nocache: options.nocache || false,
}),
)
.catch(BuildError, e => {

View File

@ -43,6 +43,7 @@ export interface DeviceDeployOptions {
deviceHost: string;
devicePort?: number;
registrySecrets: RegistrySecrets;
nocache: boolean;
}
async function checkSource(source: string): Promise<boolean> {
@ -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(