Skip to content

Commit 33cd3ea

Browse files
authored
feat: upgrade to images of version 1 (rolling tag) (#93)
1 parent 38e7f4c commit 33cd3ea

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ fi
88
yarn lint-staged
99
yarn lint
1010
yarn test
11+
1112
yarn build
13+
git add dist

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

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/image-tag.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('ImageTag', () => {
1616
it('returns the correct version', () => {
1717
const image = new ImageTag('2099.1.1111');
1818

19-
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-linux-il2cpp-0`);
19+
expect(image.toString()).toStrictEqual(`unityci/editor:ubuntu-2099.1.1111-linux-il2cpp-1`);
2020
});
2121
});
2222
});

src/model/image-tag.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ImageTag {
103103
}
104104

105105
get tag() {
106-
return `${this.version}-${this.builderPlatform}`.replace(/-+$/, '');
106+
return `ubuntu-${this.version}-${this.builderPlatform}`.replace(/-+$/, '');
107107
}
108108

109109
get image() {
@@ -117,7 +117,7 @@ class ImageTag {
117117
return customImage;
118118
}
119119

120-
const dockerRepoVersion = 0;
120+
const dockerRepoVersion = 1;
121121
return `${image}:${tag}-${dockerRepoVersion}`;
122122
}
123123
}

0 commit comments

Comments
 (0)