From c0b8cda2315b076ff0ba0a4cb6f612531da0a34c Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 28 Oct 2015 10:56:11 -0400 Subject: [PATCH] clear the local and remote tags just before tagging again Signed-off-by: Alfredo Deza --- ansible/roles/ceph-release/tasks/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ansible/roles/ceph-release/tasks/main.yml b/ansible/roles/ceph-release/tasks/main.yml index 5ec59800..e062fb7a 100644 --- a/ansible/roles/ceph-release/tasks/main.yml +++ b/ansible/roles/ceph-release/tasks/main.yml @@ -23,16 +23,6 @@ ignore_errors: yes when: clean -- name: clear the previous local tag - command: git tag -d v{{ version }} chdir=ceph - ignore_errors: yes - when: clean - -- name: clear the previous remote tag - command: git push origin :v{{ version }} chdir=ceph - ignore_errors: yes - when: clean - - name: force git checkout {{ branch }} branch command: git checkout -f {{ branch }} chdir=ceph @@ -59,8 +49,18 @@ - name: commit the version changes command: git commit -a -m "{{ version }}" chdir=ceph +- name: clear the previous local tag + command: git tag -d v{{ version }} chdir=ceph + ignore_errors: yes + when: clean + +- name: clear the previous remote tag + command: git push origin :v{{ version }} chdir=ceph + ignore_errors: yes + when: clean + # from script: /srv/ceph-build/tag_release.sh -- name: tag and commit the version +- name: tag the version # we used to sign releases like: # GNUPGHOME=~/build/gnupg.ceph-release # git tag -s "v{{ version }}" -u 17ED316D -m "v{{ version }}" chdir=ceph -- 2.39.5