mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 08:25:36 +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[]> {
|
||||
const container = await getSupervisorContainer(docker);
|
||||
return [container.Image];
|
||||
try {
|
||||
const container = await getSupervisorContainer(docker);
|
||||
return [container.Image];
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
// perform the build and return the image id
|
||||
|
Loading…
x
Reference in New Issue
Block a user