mirror of
https://github.com/game-ci/unity-activate
synced 2026-01-29 06:20:06 +08:00
feat: upgrade to images of version 1 (rolling tag) (#93)
This commit is contained in:
@@ -8,4 +8,6 @@ fi
|
||||
yarn lint-staged
|
||||
yarn lint
|
||||
yarn test
|
||||
|
||||
yarn build
|
||||
git add dist
|
||||
|
||||
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@@ -278,7 +278,7 @@ class ImageTag {
|
||||
}
|
||||
}
|
||||
get tag() {
|
||||
return `${this.version}-${this.builderPlatform}`.replace(/-+$/, '');
|
||||
return `ubuntu-${this.version}-${this.builderPlatform}`.replace(/-+$/, '');
|
||||
}
|
||||
get image() {
|
||||
return `${this.repository}/${this.name}`.replace(/^\/+/, '');
|
||||
@@ -288,7 +288,7 @@ class ImageTag {
|
||||
if (customImage && customImage !== '') {
|
||||
return customImage;
|
||||
}
|
||||
const dockerRepoVersion = 0;
|
||||
const dockerRepoVersion = 1;
|
||||
return `${image}:${tag}-${dockerRepoVersion}`;
|
||||
}
|
||||
}
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -16,7 +16,7 @@ describe('ImageTag', () => {
|
||||
it('returns the correct version', () => {
|
||||
const image = new ImageTag('2099.1.1111');
|
||||
|
||||
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-linux-il2cpp-0`);
|
||||
expect(image.toString()).toStrictEqual(`unityci/editor:ubuntu-2099.1.1111-linux-il2cpp-1`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -103,7 +103,7 @@ class ImageTag {
|
||||
}
|
||||
|
||||
get tag() {
|
||||
return `${this.version}-${this.builderPlatform}`.replace(/-+$/, '');
|
||||
return `ubuntu-${this.version}-${this.builderPlatform}`.replace(/-+$/, '');
|
||||
}
|
||||
|
||||
get image() {
|
||||
@@ -117,7 +117,7 @@ class ImageTag {
|
||||
return customImage;
|
||||
}
|
||||
|
||||
const dockerRepoVersion = 0;
|
||||
const dockerRepoVersion = 1;
|
||||
return `${image}:${tag}-${dockerRepoVersion}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user