terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

Fix Docker tag logic to prevent undefined in dev tag #3524

Closed busma13 closed 9 months ago

busma13 commented 10 months ago

This PR makes the following changes:

I chose to add the node suffix by default to make the transition simple when we decide that having a tag without a node suffix will never be necessary. At that point we can update formatDailyTag() to take nodeVersion as a parameter and update its test.

with node suffix:
daily         terascope/teraslice:daily-2024.01.12-fe31c87bf9f-nodev16.20.2
dev           terascope/teraslice:dev-local-nodev18.18.2
latest        terascope/teraslice:latest-nodev16.20.2
prerelease    terascope/teraslice:v0.91.1-rc.0-nodev16.20.2
tag           terascope/teraslice:v0.91.0-nodev18.18.2

without node suffix:
daily         terascope/teraslice:daily-2024.01.12-fe31c87bf9f
dev           terascope/teraslice:dev-local
latest        terascope/teraslice:latest
prerelease    terascope/teraslice:v0.91.1-rc.0
tag           terascope/teraslice:v0.91.0