Merge pull request from balena-io/local-push-upgrades

Support nocache flag in push <ip>
This commit is contained in:
CameronDiver 2019-03-29 13:56:20 +00:00 committed by GitHub
commit 6825ffe416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions
lib
actions
utils/device

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

@ -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(