docker: remove singleton
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -55,7 +55,7 @@ export class Buildx {
|
||||
}
|
||||
|
||||
public async isStandalone(): Promise<boolean> {
|
||||
const standalone = this._standalone ?? !(await Docker.getInstance().isAvailable());
|
||||
const standalone = this._standalone ?? !(await Docker.isAvailable());
|
||||
core.debug(`Buildx.isStandalone: ${standalone}`);
|
||||
return standalone;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ export class Install {
|
||||
}
|
||||
|
||||
private async isStandalone(): Promise<boolean> {
|
||||
const standalone = this._standalone ?? !(await Docker.getInstance().isAvailable());
|
||||
const standalone = this._standalone ?? !(await Docker.isAvailable());
|
||||
core.debug(`Install.isStandalone: ${standalone}`);
|
||||
return standalone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user