Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds version meta tag. This will expose the version of the site so you can verify which image is running without checking kubernetes or argocd.
This changes makes it so that the application exposes the value in the environment variable
APP_VERSION
through theversion
meta tag. In development this is alwaysAPP_VERSION
. In kubernetes, this is inserted at kubernetes application time, and is the tag of the app image. The tag is either the release version (in production forstable
images) or the commit hash (in not-production forunstable
images).The development version doesn't try to calculate the version because it'd be somewhat complex logic relying on
git
cli commands, and it's not the right place for this logic in the first place. We want to insert the image information and that information comes from outside of the application. So, when viewing the site on localhost, the version will always showAPP_VERSION
, and it is supposed to do that.