]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Makefile: add "make tag" command
authorKen Dreyer <kdreyer@redhat.com>
Thu, 10 May 2018 23:08:05 +0000 (17:08 -0600)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 16 May 2018 17:05:38 +0000 (19:05 +0200)
commitfcea56849578bd47e65b130ab6884e0b96f9d89d
tree9f6ee41784767d113592a7d58a1fca93707b23a4
parenta55ff1cfe29b526a4674b1e6b037ef60b62fa9a6
Makefile: add "make tag" command

Add a new "make tag" command. This automates some common operations:

1) Automatically determine the next Git tag version number to create.
   For example:
   "3.2.0beta1 -> "3.2.0beta2"
   "3.2.0rc1 -> "3.2.0rc2"
   "3.2.0" -> "3.2.1"

2) Create the Git tag, and print instructions for the user to push it to
   GitHub.

3) Sanity check that HEAD is a stable-* branch or master (bail on
   everything else).

4) Sanity check that HEAD is not already tagged.

Note, we will still need to tag manually once each time we change the
format, for example when moving from tagging "betas" to tagging "rcs",
or "rcs" to "stable point releases".

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
Co-authored-by: Guillaume Abrioux <gabrioux@redhat.com>
Makefile