@@ -175,6 +175,11 @@ jobs:
175175 echo "sha_short=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
176176 fi
177177
178+ - name : configure Docker Node.js image tag
179+ id : node-version-tag
180+ if : ${{ inputs.dockerize }}
181+ run : echo "value=:$(< .node-version)-slim" >> "$GITHUB_OUTPUT"
182+
178183 - name : build docker images (${{ matrix.platform }})
179184 timeout-minutes : 60
180185 id : docker-bake
@@ -191,6 +196,7 @@ jobs:
191196 BUILD_STABLE : ${{ inputs.publishLatest && '1' || '' }}
192197 BUILD_PLATFORM : ${{ matrix.platform }}
193198 IMAGE_SUFFIX : ${{ matrix.suffix }}
199+ NODE_VERSION_TAG : ${{ steps.node-version-tag.outputs.value }}
194200 with :
195201 # See https://github.com/docker/buildx/issues/1533
196202 provenance : false
@@ -237,6 +243,10 @@ jobs:
237243 with :
238244 fetch-depth : 2
239245
246+ - name : configure Docker Node.js image tag
247+ id : node-version-tag
248+ run : echo "value=:$(< .node-version)-slim" >> "$GITHUB_OUTPUT"
249+
240250 - name : configure docker buildx
241251 uses : docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
242252
@@ -254,6 +264,7 @@ jobs:
254264 REGISTRY : ${{ inputs.registry }}
255265 IMAGE_NAME : ${{ inputs.imageName }}
256266 IMAGE_TAG : ${{ inputs.imageTag }}
267+ NODE_VERSION_TAG : ${{ steps.node-version-tag.outputs.value }}
257268 run : |
258269 targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
259270
@@ -284,6 +295,7 @@ jobs:
284295 REGISTRY : ${{ inputs.registry }}
285296 IMAGE_NAME : ${{ inputs.imageName }}
286297 IMAGE_TAG : ${{ steps.git_hash.outputs.sha_short }}
298+ NODE_VERSION_TAG : ${{ steps.node-version-tag.outputs.value }}
287299 run : |
288300 targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
289301
@@ -308,6 +320,7 @@ jobs:
308320 SHA_SHORT : ${{ steps.git_hash.outputs.sha_short }}
309321 RELEASE_STAGE : ${{ inputs.publishLatest == false && 'alpha-' || '' }}
310322 LATEST_VERSION : ${{ inputs.latestVersion }}
323+ NODE_VERSION_TAG : ${{ steps.node-version-tag.outputs.value }}
311324 run : |
312325 targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
313326
@@ -328,6 +341,7 @@ jobs:
328341 TARGETS : ${{ inputs.targets }}
329342 REGISTRY : ${{ inputs.registry }}
330343 IMAGE_NAME : ${{ inputs.imageName }}
344+ NODE_VERSION_TAG : ${{ steps.node-version-tag.outputs.value }}
331345 run : |
332346 targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
333347
0 commit comments