Fix failing test's Docker image

pull/164/head
Aaron Trudeau 2021-10-20 23:32:32 -04:00
parent f9b95906a6
commit d9147cdc1d
No known key found for this signature in database
GPG Key ID: 29F89A9BDAAF7BDE
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,8 @@ describe('Docker', () => {
const dockerfile = `${path}/Dockerfile`; const dockerfile = `${path}/Dockerfile`;
const image = new ImageTag({ const image = new ImageTag({
repository: '', repository: '',
name: 'alpine', name: 'ubuntu',
version: '3', version: 'impish',
}); });
const baseImage = { const baseImage = {
@ -17,9 +17,9 @@ describe('Docker', () => {
version: image.version, version: image.version,
}; };
const tag = await Docker.build({ path, dockerfile, baseImage }, false); const tag = await Docker.build({ path, dockerfile, baseImage }, true);
expect(tag).toBeInstanceOf(ImageTag); expect(tag).toBeInstanceOf(ImageTag);
expect(tag.toString()).toStrictEqual('unity-action:3-base-0'); expect(tag.toString()).toStrictEqual('unity-action:impish-base-0');
}, 240000); }, 240000);
}); });

View File

@ -22,7 +22,7 @@ class ImageTag {
} }
static get versionPattern() { static get versionPattern() {
return /^20\d{2}\.\d\.\w{3,4}|3$/; return /^(20\d{2}\.\d\.\w{3,4}|3)|impish$/;
} }
get tag() { get tag() {