Skip to content

Commit 54ef63e

Browse files
committed
fix(stackbrew): read the fullversion for each image
1 parent c7a4042 commit 54ef63e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

stackbrew.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ for (version of versions) {
5252
let isDefaultSlim = new RegExp(`${defaultDebian}-slim`).test(variant)
5353

5454
// Get full version from the first Dockerfile
55-
if (!fullversion) {
56-
let dockerfile = fs.readFileSync(dockerfilePath, 'utf-8')
57-
fullversion = dockerfile.match(/ENV NODE_VERSION=(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/)
58-
}
55+
let dockerfile = fs.readFileSync(dockerfilePath, 'utf-8')
56+
fullversion = dockerfile.match(/ENV NODE_VERSION=(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/)
57+
5958
let tags = [
6059
`${fullversion.groups.major}.${fullversion.groups.minor}.${fullversion.groups.patch}-${variant}`,
6160
`${fullversion.groups.major}.${fullversion.groups.minor}-${variant}`,

0 commit comments

Comments
 (0)