We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a4042 commit 54ef63eCopy full SHA for 54ef63e
1 file changed
stackbrew.js
@@ -52,10 +52,9 @@ for (version of versions) {
52
let isDefaultSlim = new RegExp(`${defaultDebian}-slim`).test(variant)
53
54
// 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
- }
+ let dockerfile = fs.readFileSync(dockerfilePath, 'utf-8')
+ fullversion = dockerfile.match(/ENV NODE_VERSION=(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/)
+
59
let tags = [
60
`${fullversion.groups.major}.${fullversion.groups.minor}.${fullversion.groups.patch}-${variant}`,
61
`${fullversion.groups.major}.${fullversion.groups.minor}-${variant}`,
0 commit comments