Fix failing test's Docker image

This commit is contained in:
Aaron Trudeau
2021-10-20 23:32:32 -04:00
parent f9b95906a6
commit d9147cdc1d
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 image = new ImageTag({
repository: '',
name: 'alpine',
version: '3',
name: 'ubuntu',
version: 'impish',
});
const baseImage = {
@@ -17,9 +17,9 @@ describe('Docker', () => {
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.toString()).toStrictEqual('unity-action:3-base-0');
expect(tag.toString()).toStrictEqual('unity-action:impish-base-0');
}, 240000);
});

View File

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