Skip to content

Commit de1240e

Browse files
BLaZeKiLLwebbertakken
authored andcommitted
platform hardcoded as base
1 parent 73ea6d4 commit de1240e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

action/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/docker.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('Docker', () => {
1313
});
1414

1515
const baseImage = {
16-
toString: () => image.toString().slice(0, image.toString().lastIndexOf('-')),
16+
toString: () => image.toString().slice(0, image.toString().lastIndexOf('-base-0')),
1717
version: image.version,
1818
};
1919

2020
const tag = await Docker.build({ path, dockerfile, baseImage }, true);
2121

2222
expect(tag).toBeInstanceOf(ImageTag);
23-
expect(tag.toString()).toStrictEqual('unity-action:3-0');
23+
expect(tag.toString()).toStrictEqual('unity-action:3-base-0');
2424
}, 240000);
2525
});

src/model/image-tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ImageTag {
3434
}
3535

3636
toString() {
37-
return `${this.image}:${this.tag}-0`;
37+
return `${this.image}:${this.tag}-base-0`;
3838
}
3939
}
4040

src/model/image-tag.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('UnityImageVersion', () => {
3232
it('returns the correct version', () => {
3333
const image = ImageTag.createForBase('2099.1.1111');
3434

35-
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-0`);
35+
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-base-0`);
3636
});
3737
});
3838
});

0 commit comments

Comments
 (0)