In this branch, I configured the GitHub Actions workflow that builds the container images, to store the application's version number in an environment variable within the container image. I also defined a new server-side config variable that reads that environment variable and makes its value available to the server-side application. Finally, I implemented an API endpoint (at /api/version) that returns the version identifier, which looks like this:
This gets us closer to allowing users to determine what version of NMDC EDGE they did something with (e.g. for citation purposes). Eventually, I suspect we will display the version identifier on the web UI, but that is out of scope for this PR.
In this branch, I configured the GitHub Actions workflow that builds the container images, to store the application's version number in an environment variable within the container image. I also defined a new server-side
config
variable that reads that environment variable and makes its value available to the server-side application. Finally, I implemented an API endpoint (at/api/version
) that returns the version identifier, which looks like this:This gets us closer to allowing users to determine what version of NMDC EDGE they did something with (e.g. for citation purposes). Eventually, I suspect we will display the version identifier on the web UI, but that is out of scope for this PR.