diff --git a/src/model/image-tag.test.ts b/src/model/image-tag.test.ts index f567cadd..a80fe6bb 100644 --- a/src/model/image-tag.test.ts +++ b/src/model/image-tag.test.ts @@ -49,10 +49,10 @@ describe('ImageTag', () => { const image = new ImageTag({ editorVersion: '2099.1.1111', targetPlatform: testImageParameters.targetPlatform }); switch (process.platform) { 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; 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; } }); @@ -71,10 +71,10 @@ describe('ImageTag', () => { switch (process.platform) { 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; 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; } }); @@ -84,10 +84,10 @@ describe('ImageTag', () => { switch (process.platform) { 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; 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; } }); diff --git a/src/model/image-tag.ts b/src/model/image-tag.ts index 2d16ee30..693b84b7 100644 --- a/src/model/image-tag.ts +++ b/src/model/image-tag.ts @@ -33,7 +33,7 @@ class ImageTag { this.imagePlatformPrefix = ImageTag.getImagePlatformPrefixes( 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 { @@ -165,4 +165,5 @@ class ImageTag { return `${image}:${tag}`; // '0' here represents the docker repo version } } + export default ImageTag;