You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running hamlet release update-image-reference with a -r flag set and the reference provided, if the env var GIT_COMMIT is defined this overrides the value set when using the -r flag
However this doesn't apply when running hamlet release upload-image with the -r flag set
Expected Behaviour
The command like flag should take precedence over all other values to ensure consistency in behaviour
Possible Solution
Find where GIT_COMMIT is used as part of the manageBuildReferences processing and make sure the command line option is preferred
Steps to Reproduce
Using Jenkins upload an image using the command hamlet release upload-image -r "${GIT_COMMIT}_testing" -u -f spa --image-path
After that run `hamlet release update-image-reference -r "${GIT_COMMIT}_testing" -u -f spa
In this scenario the first command will work, but the second command will fail saying that an image with the reference of the value of GIT_COMMIT doesn't exist
The text was updated successfully, but these errors were encountered:
This is useful when you need to produce unique builds for each environment, such as working with React based SPA's which embed env var values set at build time. As a result of this you need to create a new image for each environment.
Current Behaviour
When running
hamlet release update-image-reference
with a -r flag set and the reference provided, if the env var GIT_COMMIT is defined this overrides the value set when using the -r flagHowever this doesn't apply when running hamlet release upload-image with the -r flag set
Expected Behaviour
The command like flag should take precedence over all other values to ensure consistency in behaviour
Possible Solution
Find where GIT_COMMIT is used as part of the manageBuildReferences processing and make sure the command line option is preferred
Steps to Reproduce
In this scenario the first command will work, but the second command will fail saying that an image with the reference of the value of GIT_COMMIT doesn't exist
The text was updated successfully, but these errors were encountered: