Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto generate version file #6

Closed
4 tasks
nedga055 opened this issue Jun 15, 2020 · 1 comment
Closed
4 tasks

Auto generate version file #6

nedga055 opened this issue Jun 15, 2020 · 1 comment
Assignees
Labels
priority::low Priority level low status::todo To be completed type::automation Improves an automation task

Comments

@nedga055
Copy link
Owner

nedga055 commented Jun 15, 2020

The version file is used to help track the latest release of the application and the git commit that was used to created it. It could be used in a couple of different contexts:

  1. Identifies the version info for a release package in case we need to provide the code for an individual release.
  2. Add application version information to log file.
  • Add a script that will auto-generate a version.json file.
  • Use git describe to get the current release tag.
  • Use git rev-parse HEAD to get the latest commit tag for the current branch.
  • Output the results to a version.json file which should look like:
{
"version": "1.1.3",
"git_commit": "90jdf09u029jdjsf093j209jdksljfs"
}

Example bash script can be found in the ROEC API repo. However, it may be beneficial to flask_script Command and make it available via manage.py.

@Collinbrown95
Copy link
Collaborator

Addressed in PR #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority::low Priority level low status::todo To be completed type::automation Improves an automation task
Projects
None yet
Development

No branches or pull requests

2 participants