Skip to content

Commit

Permalink
platform hardcoded as base
Browse files Browse the repository at this point in the history
  • Loading branch information
BLaZeKiLL authored and webbertakken committed Nov 1, 2020
1 parent 73ea6d4 commit de1240e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/model/docker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ describe('Docker', () => {
});

const baseImage = {
toString: () => image.toString().slice(0, image.toString().lastIndexOf('-')),
toString: () => image.toString().slice(0, image.toString().lastIndexOf('-base-0')),
version: image.version,
};

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

expect(tag).toBeInstanceOf(ImageTag);
expect(tag.toString()).toStrictEqual('unity-action:3-0');
expect(tag.toString()).toStrictEqual('unity-action:3-base-0');
}, 240000);
});
2 changes: 1 addition & 1 deletion src/model/image-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ImageTag {
}

toString() {
return `${this.image}:${this.tag}-0`;
return `${this.image}:${this.tag}-base-0`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/model/image-tag.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('UnityImageVersion', () => {
it('returns the correct version', () => {
const image = ImageTag.createForBase('2099.1.1111');

expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-0`);
expect(image.toString()).toStrictEqual(`unityci/editor:2099.1.1111-base-0`);
});
});
});

0 comments on commit de1240e

Please sign in to comment.