mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-05 18:38:14 +00:00
Merge pull request #1488 from balena-io/fix-sync-without-container
Don't require an existing supervisor container to sync
This commit is contained in:
commit
d61e33e85d
@ -59,8 +59,12 @@ export async function getDeviceArch(docker: Docker): Promise<string> {
|
||||
}
|
||||
|
||||
export async function getCacheFrom(docker: Docker): Promise<string[]> {
|
||||
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