args:
chdir: ceph
-# REGULAR / RC
-# This assumes {{ branch }} is at the point where release is desired
-# Human push to {{ branch }}-release is not necessary but won't break anything
-- name: "git checkout and reset {{ branch }}-release to {{ branch }} for REGULAR or RC release"
- command: git checkout -f -B {{ branch }}-release upstream/{{ branch }}
+# REGULAR / RC / HOTFIX
+# This assumes {{ branch }} has been pushed to {{ branch }}-release and is ready to be built
+- name: "git checkout {{ branch }}-release for non-SECURITY release"
+ command: git checkout -f -B {{ branch }}-release upstream/{{ branch }}-release
args:
chdir: ceph
when:
- - "release == 'STABLE' or release == 'RELEASE_CANDIDATE'"
+ - "release != 'SECURITY'"
- tag|bool is true
- name: "git checkout previously existing tag for re-build"
args:
chdir: ceph
when:
- - "release == 'STABLE' or release == 'RELEASE_CANDIDATE'"
+ - "release != 'SECURITY'"
- 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 -f -B {{ branch }}-release upstream/{{ 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