mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-07 11:50:27 +00:00
Don't require an existing supervisor container to sync
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
7ea9bb368e
commit
629b410e10
@ -59,8 +59,12 @@ export async function getDeviceArch(docker: Docker): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getCacheFrom(docker: Docker): Promise<string[]> {
|
export async function getCacheFrom(docker: Docker): Promise<string[]> {
|
||||||
const container = await getSupervisorContainer(docker);
|
try {
|
||||||
return [container.Image];
|
const container = await getSupervisorContainer(docker);
|
||||||
|
return [container.Image];
|
||||||
|
} catch {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// perform the build and return the image id
|
// perform the build and return the image id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user