]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
clear the local and remote tags just before tagging again
authorAlfredo Deza <adeza@redhat.com>
Wed, 28 Oct 2015 14:56:11 +0000 (10:56 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 28 Oct 2015 14:56:11 +0000 (10:56 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/ceph-release/tasks/main.yml

index 5ec59800d9391d6174670b0a00a6f0f1482350a8..e062fb7adf42aa1539747a8adc321bc4e5449c15 100644 (file)
   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
 
 - 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