]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Revert "ceph-release: Fix checkout process for HOTFIX"
authorDavid Galloway <dgallowa@redhat.com>
Wed, 18 May 2022 19:14:23 +0000 (15:14 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 18 May 2022 19:14:23 +0000 (15:14 -0400)
This reverts commit 25f83fd65c5ac936b5dc618ed6c553c9a2307529.

ansible/roles/ceph-release/tasks/create.yml

index 0215a38ccb8c7697f65aeca95051a36a74579f51..db46e07d35e946823674da45e71a4e8be79f159d 100644 (file)
@@ -37,7 +37,7 @@
   args:
     chdir: ceph
   when:
-    - "release != 'SECURITY'"
+    - "release == 'STABLE' or release == 'RELEASE_CANDIDATE'"
     - tag|bool is true
 
 - name: "git checkout previously existing tag for re-build"
   args:
     chdir: ceph
   when:
-    - "release != 'SECURITY'"
+    - "release == 'STABLE' or release == 'RELEASE_CANDIDATE'"
     - tag|bool is false
     - throwaway|bool is false
 
+# HOTFIX
+# This assumes hotfix has already been pushed to {{ branch }}-release branch on github
+- name: "git checkout {{ branch }}-release for HOTFIX release"
+  command: git checkout {{ branch }}-release
+  args:
+    chdir: ceph
+  when: "release == 'HOTFIX'"
+
 # SECURITY
 - name: "git checkout security {{ branch }}-release branch"
   command: git checkout -f -B {{ branch }}-release security/{{ branch }}-release