force_dch: false # if coming from a rc and wanting to release a stable you need to force dch
debemail: ceph-maintainers@ceph.com
debfullname: "Ceph Release Team"
+ pr_checklist: |
+ ## Checklist
+ - Tracker (select at least one)
+ - [ ] References tracker ticket
+ - [ ] Very recent bug; references commit where it was introduced
+ - [ ] New feature (ticket optional)
+ - [x] Doc update (no ticket needed)
+ - [ ] Code cleanup (no ticket needed)
+ - Component impact
+ - [ ] Affects [Dashboard](https://tracker.ceph.com/projects/dashboard/issues/new), opened tracker ticket
+ - [ ] Affects [Orchestrator](https://tracker.ceph.com/projects/orchestrator/issues/new), opened tracker ticket
+ - [x] No impact that needs to be tracked
+ - Documentation (select at least one)
+ - [ ] Updates relevant documentation
+ - [x] No doc update is appropriate
+ - Tests (select at least one)
+ - [ ] Includes [unit test(s)](https://docs.ceph.com/en/latest/dev/developer_guide/tests-unit-tests/)
+ - [ ] Includes [integration test(s)](https://docs.ceph.com/en/latest/dev/developer_guide/testing_integration_tests/)
+ - [ ] Includes bug reproducer
+ - [x] No tests
roles:
- { role: ceph-release, when: "project == 'ceph'" }
- { role: ceph-deploy-release, when: "project == 'ceph-deploy'" }
args:
chdir: ceph
-- name: "git checkout {{ branch }}"
- command: git checkout upstream/{{ branch }}
- args:
- chdir: ceph
-
-# In case any commits got pushed to {{ branch }} while we were building
-- name: "merge {{ branch }}-release changes back into {{ branch }}"
- command: git merge -m "Merging {{ branch }}-release {{ version }} commit into {{ branch }}" {{ branch }}-release
- args:
- chdir: ceph
-
-- name: "push version commit to {{ branch }}"
- command: git push upstream {{ branch }}
- args:
- chdir: ceph
+- name: "create pull request to merge {{ branch }}-release back into {{ branch }}"
+ uri:
+ url: https://api.github.com/repos/ceph/ceph/pulls
+ method: POST
+ status_code: 201
+ headers:
+ Accept: "application/vnd.github.v3+json"
+ Authorization: "token {{ token }}"
+ body:
+ title: "v{{ version }}"
+ body: "{{ pr_checklist }}"
+ head: "{{ branch }}-release"
+ base: "{{ branch }}"
+ body_format: json
+ tags: pr
+ no_log: true
- name: push the newly created tag
command: git push upstream v{{ version }}
# run ansible to do all the tagging and release specifying
# a local connection and 'localhost' as the host where to execute
cd "$WORKSPACE/ceph-build/ansible/"
- $VENV/ansible-playbook -i "localhost," -c local release.yml --extra-vars="stage=push version=$VERSION branch=$BRANCH force_version=$FORCE_VERSION release=$RELEASE_TYPE tag=$TAG project=ceph"
+ $VENV/ansible-playbook -i "localhost," -c local release.yml --extra-vars="stage=push version=$VERSION branch=$BRANCH force_version=$FORCE_VERSION release=$RELEASE_TYPE tag=$TAG project=ceph token=$GITHUB_TOKEN"
fi