mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-19 18:06:46 +00:00
Fix tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
e8186e990f
commit
995fe3c38a
3 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ export async function getVersion(): Promise<string> {
|
|||
}
|
||||
|
||||
export async function parseVersion(stdout: string): Promise<string> {
|
||||
const matches = /\sv([0-9.]+)\s/.exec(stdout);
|
||||
const matches = /\sv?([0-9.]+)/.exec(stdout);
|
||||
if (!matches) {
|
||||
throw new Error(`Cannot parse Buildx version`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue