diff --git a/stackbrew.js b/stackbrew.js index 77fa8b08a..9e7c8eab1 100755 --- a/stackbrew.js +++ b/stackbrew.js @@ -51,11 +51,10 @@ for (version of versions) { let isSlim = slimRE.test(variant) let isDefaultSlim = new RegExp(`${defaultDebian}-slim`).test(variant) - // Get full version from the first Dockerfile - if (!fullversion) { - let dockerfile = fs.readFileSync(dockerfilePath, 'utf-8') - fullversion = dockerfile.match(/ENV NODE_VERSION=(?\d+)\.(?\d+)\.(?\d+)/) - } + // Get full version from the Dockerfile + let dockerfile = fs.readFileSync(dockerfilePath, 'utf-8') + fullversion = dockerfile.match(/ENV NODE_VERSION=(?\d+)\.(?\d+)\.(?\d+)/) + let tags = [ `${fullversion.groups.major}.${fullversion.groups.minor}.${fullversion.groups.patch}-${variant}`, `${fullversion.groups.major}.${fullversion.groups.minor}-${variant}`,