alan-turing-institute / rctab-cli

RCTab CLI
MIT License
0 stars 0 forks source link

Check the versions in use against the latest published versions #9

Closed joseph-palmer closed 1 year ago

joseph-palmer commented 1 year ago

Summary

This PR adds checks that compare the CLI and API versions in use to the latest release and display a message if the versions in use are not the latest version.

The API version is checked against the tag of the latest docker image for the API (ignoring .latest and .prerelease to just look at the numbers, which should match the pyproject.toml version number).

The CLI is checked against the release tags of the CLI in this repo.

Issues

See alan-turing-institute/RCTab/issues/15

How to run

rctab --version will display You are using an old version of the RCTab CLI. The latest version is {latest.tag}. Pull the latest version from GitHub (https:://github.com/alan-turing-institute/rctab-cli) if the CLI version does not match the tag of the latest release. I will also display You are using an old version of the RCTab API. The latest version is {latest.version}. Restart the webapp in the Azure portal to update to the latest version. if the API version does not match the tag of the latest image on Docker Hub.