From: David Galloway Date: Tue, 3 Feb 2026 19:10:44 +0000 (-0500) Subject: ceph-tag: Fix condition for RCs X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e670748bf625c180150598fbcfa0077368d351c2;p=ceph-build.git ceph-tag: Fix condition for RCs Signed-off-by: David Galloway --- diff --git a/ansible/roles/ceph-release/tasks/create.yml b/ansible/roles/ceph-release/tasks/create.yml index e70af80a..4cb963e2 100644 --- a/ansible/roles/ceph-release/tasks/create.yml +++ b/ansible/roles/ceph-release/tasks/create.yml @@ -40,6 +40,18 @@ - "release != 'SECURITY'" - tag|bool is true +# If the previous tag exists, just reuse it. Otherwise with the head commit in ceph-releases.git. +- name: check for previously existing tag for re-build + command: git ls-remote --tags releases "refs/tags/v{{ version }}" + args: + chdir: ceph + when: + - "release != 'SECURITY'" + - tag|bool is false + register: previous_tag_exists + changed_when: false + failed_when: false + - name: "git checkout previously existing tag for re-build" command: git checkout -f v{{ version }} args: @@ -47,6 +59,8 @@ when: - "release != 'SECURITY'" - tag|bool is false + - previous_tag_exists is defined + - previous_tag_exists.stdout | length > 0 # SECURITY - name: "git checkout security {{ branch }}-release branch"