From 5d3cf873d67ca198f6c56f05132a3fb023f46bb4 Mon Sep 17 00:00:00 2001 From: Travis Shivers Date: Fri, 2 Oct 2020 21:03:25 -0500 Subject: [PATCH] build(docker): adjust platform detection --- .github/getDockerPlatforms.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/getDockerPlatforms.js b/.github/getDockerPlatforms.js index 42f53081..f2a5c330 100644 --- a/.github/getDockerPlatforms.js +++ b/.github/getDockerPlatforms.js @@ -28,7 +28,9 @@ const getDockerfileArches = (file, supportedPlatformsStr) => { const basePlatforms = getImagePlatforms(getDockerfileImage(file)); console.log('Base platforms: ', basePlatforms.join(', ')); const supportedPlatforms = supportedPlatformsStr.split(','); - return basePlatforms.filter((platform) => supportedPlatforms.includes(platform)).join(',');; + return basePlatforms.filter( + (platform) => supportedPlatforms.some((supPlatform) => platform.startsWith(supPlatform)), + ).join(','); } module.exports = getDockerfileArches;