The goal of this issue is to allow all apps we currently have:
- ENSAdmin
- ENSIndexer
- ENSRainbow
to be aware of which version of the code is running in their runtime.
Currently, we'd read the version field from the package.json file from a given app directory. However, this version field changes only when we complete a GitHub Release.
The code keeps changing more often, so we need to track a reference to the current code version. We can achieve that by, for example, tracking git commit SHA with an environment variable. We can easily embed such value into a Docker image, so when application container is created, the value can be easily accessed.
The goal of this issue is to allow all apps we currently have:
to be aware of which version of the code is running in their runtime.
Currently, we'd read the
versionfield from thepackage.jsonfile from a given app directory. However, this version field changes only when we complete a GitHub Release.The code keeps changing more often, so we need to track a reference to the current code version. We can achieve that by, for example, tracking git commit SHA with an environment variable. We can easily embed such value into a Docker image, so when application container is created, the value can be easily accessed.