microbiomedata / nmdc-edge

Web-based interface to the NMDC EDGE platform
https://nmdc-edge.org
4 stars 0 forks source link

Implement API endpoint that returns app version identifier #176

Closed eecavanna closed 4 months ago

eecavanna commented 4 months ago

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:

image

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.