feat: bump (major) docker image rolling tag

This commit is contained in:
Webber 2023-08-16 00:30:21 +02:00
parent ba1e019ad6
commit 71aa891813
2 changed files with 8 additions and 7 deletions

View File

@ -49,10 +49,10 @@ describe('ImageTag', () => {
const image = new ImageTag({ editorVersion: '2099.1.1111', targetPlatform: testImageParameters.targetPlatform }); const image = new ImageTag({ editorVersion: '2099.1.1111', targetPlatform: testImageParameters.targetPlatform });
switch (process.platform) { switch (process.platform) {
case 'win32': case 'win32':
expect(image.toString()).toStrictEqual(`${defaults.image}:windows-2099.1.1111-1`); expect(image.toString()).toStrictEqual(`${defaults.image}:windows-2099.1.1111-2`);
break; break;
case 'linux': case 'linux':
expect(image.toString()).toStrictEqual(`${defaults.image}:ubuntu-2099.1.1111-1`); expect(image.toString()).toStrictEqual(`${defaults.image}:ubuntu-2099.1.1111-2`);
break; break;
} }
}); });
@ -71,10 +71,10 @@ describe('ImageTag', () => {
switch (process.platform) { switch (process.platform) {
case 'win32': case 'win32':
expect(image.toString()).toStrictEqual(`${defaults.image}:windows-2019.2.11f1-webgl-1`); expect(image.toString()).toStrictEqual(`${defaults.image}:windows-2019.2.11f1-webgl-2`);
break; break;
case 'linux': case 'linux':
expect(image.toString()).toStrictEqual(`${defaults.image}:ubuntu-2019.2.11f1-webgl-1`); expect(image.toString()).toStrictEqual(`${defaults.image}:ubuntu-2019.2.11f1-webgl-2`);
break; break;
} }
}); });
@ -84,10 +84,10 @@ describe('ImageTag', () => {
switch (process.platform) { switch (process.platform) {
case 'win32': case 'win32':
expect(image.toString()).toStrictEqual(`${defaults.image}:windows-2019.2.11f1-1`); expect(image.toString()).toStrictEqual(`${defaults.image}:windows-2019.2.11f1-2`);
break; break;
case 'linux': case 'linux':
expect(image.toString()).toStrictEqual(`${defaults.image}:ubuntu-2019.2.11f1-1`); expect(image.toString()).toStrictEqual(`${defaults.image}:ubuntu-2019.2.11f1-2`);
break; break;
} }
}); });

View File

@ -33,7 +33,7 @@ class ImageTag {
this.imagePlatformPrefix = ImageTag.getImagePlatformPrefixes( this.imagePlatformPrefix = ImageTag.getImagePlatformPrefixes(
isCloudRunnerLocal ? process.platform : cloudRunnerBuilderPlatform, isCloudRunnerLocal ? process.platform : cloudRunnerBuilderPlatform,
); );
this.imageRollingVersion = 1; // Will automatically roll to the latest non-breaking version. this.imageRollingVersion = 2; // Will automatically roll to the latest non-breaking version.
} }
static get versionPattern(): RegExp { static get versionPattern(): RegExp {
@ -165,4 +165,5 @@ class ImageTag {
return `${image}:${tag}`; // '0' here represents the docker repo version return `${image}:${tag}`; // '0' here represents the docker repo version
} }
} }
export default ImageTag; export default ImageTag;