Skip to content

Commit

Permalink
[build images]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Dec 12, 2024
1 parent f7ee0b6 commit 8a08ee5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .buildkite/ci.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function getPlatformLabel(platform) {
* @returns {string}
*/
function getImageKey(platform) {
const { os, arch, distro, release, features } = platform;
const { os, arch, distro, release, features, abi } = platform;
const version = release.replace(/\./g, "");
let key = `${os}-${arch}-${version}`;
if (distro) {
Expand All @@ -185,6 +185,11 @@ function getImageKey(platform) {
if (features?.length) {
key += `-with-${features.join("-")}`;
}

if (abi) {
key += `-${abi}`;
}

return key;
}

Expand All @@ -203,17 +208,15 @@ function getImageLabel(platform) {
* @returns {string}
*/
function getImageName(platform, options) {
const { os, arch, distro, release, features = [] } = platform;
const { os } = platform;
const { buildImages, publishImages } = options;
let name = distro ? `${os}-${arch}-${distro}-${release}` : `${os}-${arch}-${release}`;

if (features?.length) {
name += `-with-${features.join("-")}`;
}
const name = getImageBasename(platform);

if (buildImages && !publishImages) {
return `${name}-build-${getBuildNumber()}`;
}

return `${name}-v${getBootstrapVersion(os)}`;
}

Expand Down

0 comments on commit 8a08ee5

Please sign in to comment.