]> 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>
Thu, 31 May 2018 09:15:30 +0000 (11:15 +0200)
commite5f2df88f949bc2015d707cf86683a0cbf13a3ca
tree99a2dd6fbf36b058ce8efe7a15a873dc92defdb4
parentd1a1eb897610f0587da21339b6577bc5fa2d73bc
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>
(cherry picked from commit fcea56849578bd47e65b130ab6884e0b96f9d89d)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Makefile