Skip to content

Commit

Permalink
build js files
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Jan 22, 2025
1 parent 4a2e0a6 commit 1d1a188
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ const installCriDocker = () => __awaiter(void 0, void 0, void 0, function* () {
},
};
yield (0, exec_1.exec)('lsb_release', ['--short', '--codename'], options);
codename = codename.trim();
// Check if the codename is one of the expected values
// because Cri-dockerd doesnt support "noble" yet
if (!['bionic', 'focal', 'jammy'].includes(codename)) {
codename = 'jammy';
}
const criDockerURL = `https://github.com/Mirantis/cri-dockerd/releases/download/${criDockerVersion}/cri-dockerd_${criDockerVersion.replace(/^v/, '')}.3-0.ubuntu-${codename}_amd64.deb`;
const criDockerDownload = (0, tool_cache_1.downloadTool)(criDockerURL);
yield (0, exec_1.exec)('sudo', ['dpkg', '--install', yield criDockerDownload]);
Expand Down

0 comments on commit 1d1a188

Please sign in to comment.