mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Update RELEASE.md
This commit is contained in:
parent
7f36ddd208
commit
b0bf9c4b06
224
RELEASE.md
224
RELEASE.md
@ -1,31 +1,11 @@
|
|||||||
# Release Workflow <a id="release-workflow"></a>
|
# Release Workflow
|
||||||
|
|
||||||
#### Table of Content
|
## Preparations
|
||||||
|
|
||||||
- [1. Preparations](#preparations)
|
|
||||||
- [1.1. Issues](#issues)
|
|
||||||
- [1.2. Backport Commits](#backport-commits)
|
|
||||||
- [1.3. Authors](#authors)
|
|
||||||
- [2. Version](#version)
|
|
||||||
- [3. Changelog](#changelog)
|
|
||||||
- [4. Git Tag](#git-tag)
|
|
||||||
- [5. Package Builds](#package-builds)
|
|
||||||
- [5.1. RPM Packages](#rpm-packages)
|
|
||||||
- [5.2. DEB Packages](#deb-packages)
|
|
||||||
- [6. Build Server](#build-server)
|
|
||||||
- [7. Release Tests](#release-tests)
|
|
||||||
- [8. GitHub Release](#github-release)
|
|
||||||
- [9. Post Release](#post-release)
|
|
||||||
- [9.1. Online Documentation](#online-documentation)
|
|
||||||
- [9.2. Announcement](#announcement)
|
|
||||||
- [9.3. Project Management](#project-management)
|
|
||||||
|
|
||||||
## Preparations <a id="preparations"></a>
|
|
||||||
|
|
||||||
Specify the release version.
|
Specify the release version.
|
||||||
|
|
||||||
```
|
```
|
||||||
VERSION=2.6.3
|
VERSION=2.7.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Add your signing key to your Git configuration file, if not already there.
|
Add your signing key to your Git configuration file, if not already there.
|
||||||
@ -39,17 +19,17 @@ vim $HOME/.gitconfig
|
|||||||
signingkey = D14A1F16
|
signingkey = D14A1F16
|
||||||
```
|
```
|
||||||
|
|
||||||
### Issues <a id="issues"></a>
|
### Issues
|
||||||
|
|
||||||
Check issues at https://github.com/Icinga/icingaweb2
|
Check issues at https://github.com/Icinga/icingaweb2
|
||||||
|
|
||||||
### Backport Commits <a id="backport-commits"></a>
|
### Backport Commits
|
||||||
|
|
||||||
For minor versions not branched off git master you need
|
For minor versions not branched off git master you need
|
||||||
to manually backport any and all commits from the
|
to manually backport any and all commits from the
|
||||||
master branch which should be part of this release.
|
master branch which should be part of this release.
|
||||||
|
|
||||||
### Authors <a id="authors"></a>
|
### Authors
|
||||||
|
|
||||||
Update the [.mailmap](.mailmap) and [AUTHORS](AUTHORS) files:
|
Update the [.mailmap](.mailmap) and [AUTHORS](AUTHORS) files:
|
||||||
|
|
||||||
@ -57,7 +37,7 @@ Update the [.mailmap](.mailmap) and [AUTHORS](AUTHORS) files:
|
|||||||
git log --use-mailmap | grep '^Author:' | cut -f2- -d' ' | sort | uniq > AUTHORS
|
git log --use-mailmap | grep '^Author:' | cut -f2- -d' ' | sort | uniq > AUTHORS
|
||||||
```
|
```
|
||||||
|
|
||||||
## Version <a id="version"></a>
|
## Version
|
||||||
|
|
||||||
Update the version in the following files:
|
Update the version in the following files:
|
||||||
|
|
||||||
@ -73,11 +53,12 @@ sed -i "s/const VERSION = '.*'/const VERSION = '$VERSION'/g" library/Icinga/Appl
|
|||||||
find . -type f -name '*.info' -exec sed -i "s/Version: .*/Version: $VERSION/g" {} \;
|
find . -type f -name '*.info' -exec sed -i "s/Version: .*/Version: $VERSION/g" {} \;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Changelog <a id="changelog"></a>
|
## Changelog
|
||||||
|
|
||||||
Link to the milestone and closed=1 as filter.
|
Choose the most important issues and summarize them in multiple groups/paragraphs. Provide links to the mentioned
|
||||||
|
issues/PRs. At the start include a link to the milestone's closed issues.
|
||||||
|
|
||||||
## Git Tag <a id="git-tag"></a>
|
## Git Tag
|
||||||
|
|
||||||
```
|
```
|
||||||
git commit -v -a -m "Release version $VERSION"
|
git commit -v -a -m "Release version $VERSION"
|
||||||
@ -93,138 +74,125 @@ git tag -s -m "Version $VERSION" v$VERSION
|
|||||||
Push the tag:
|
Push the tag:
|
||||||
|
|
||||||
```
|
```
|
||||||
git push --tags
|
git push v$VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
**For major releases:** Create a new `support` branch:
|
**For major releases:** Create a new `support` branch:
|
||||||
|
|
||||||
```
|
```
|
||||||
git checkout master
|
git checkout master
|
||||||
git checkout -b support/2.6
|
git checkout -b support/2.7
|
||||||
git push -u origin support/2.6
|
git push -u origin support/2.7
|
||||||
```
|
```
|
||||||
|
|
||||||
## Package Builds <a id="package-builds"></a>
|
## Package Builds
|
||||||
|
|
||||||
### RPM Packages <a id="rpm-packages"></a>
|
### RPM Packages
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone git@github.com:icinga/rpm-icingaweb2.git && cd rpm-icingaweb2
|
git clone git@git.icinga.com:packaging/rpm-icingaweb2.git && cd rpm-icingaweb2
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Branch Workflow
|
### DEB Packages
|
||||||
|
|
||||||
**Major releases** are branched off `master`.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
git checkout master && git pull
|
git clone git@git.icinga.com:packaging/deb-icingaweb2.git && cd deb-icingaweb2
|
||||||
```
|
```
|
||||||
|
|
||||||
**Bugfix releases** are created in the `release` branch and later merged to master.
|
### Branch Workflow
|
||||||
|
|
||||||
```
|
Checkout `master` and create a new branch.
|
||||||
git checkout release && git pull
|
|
||||||
|
* For releases use x.x[.x] as branch name (e.g. 2.7 or 2.7.1)
|
||||||
|
* For releases with revision use x.x.x-n (e.g. 2.7.0-2)
|
||||||
|
|
||||||
|
### Switch Build Type (For RPM and DEB)
|
||||||
|
|
||||||
|
Edit file `.gitlab-ci.yml` and comment variable `ICINGA_BUILD_TYPE` out.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
variables:
|
||||||
|
...
|
||||||
|
#ICINGA_BUILD_TYPE: snapshot
|
||||||
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Release Commit
|
Commit the change.
|
||||||
|
|
||||||
Set the `Version`, `Revision` and `changelog` inside the spec file.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
sed -i "s/Version: .*/Version: $VERSION/g" icingaweb2.spec
|
git commit -av -m "Switch build type for $VERSION-1"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### RPM Release Preparations
|
||||||
|
|
||||||
|
Set the `Version`, `revision` and `%changelog` inside the spec file:
|
||||||
|
|
||||||
|
```
|
||||||
|
sed -i "s/Version:.*/Version: $VERSION/g" icingaweb2.spec
|
||||||
|
|
||||||
vim icingaweb2.spec
|
vim icingaweb2.spec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Apr 24 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.6.3-1
|
* Tue Jul 30 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.7.0-1
|
||||||
- Update to 2.6.3
|
- Update to 2.7.0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### DEB Release Preparations
|
||||||
|
|
||||||
|
Update file `debian/changelog` and add at the beginning:
|
||||||
|
|
||||||
|
```
|
||||||
|
icingaweb2 (2.7.0-1) icinga; urgency=medium
|
||||||
|
|
||||||
|
* Release 2.7.0-1
|
||||||
|
|
||||||
|
-- Eric Lippmann <eric.lippmann@icinga.com> Tue, 30 Jul 2019 09:28:52 +0000
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Release Commit (For RPM and DEB)
|
||||||
|
|
||||||
|
Commit the changes and push the branch.
|
||||||
|
|
||||||
```
|
```
|
||||||
git commit -av -m "Release $VERSION-1"
|
git commit -av -m "Release $VERSION-1"
|
||||||
git push
|
git push origin 2.7
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note for major releases**: Update release branch to latest.
|
Gitlab will now build snapshot packages based on the tag `v2.7.0` of Icinga Web 2.
|
||||||
`git checkout release && git pull && git merge master && git push`
|
|
||||||
|
|
||||||
**Note for minor releases**: Cherry-pick the release commit into master.
|
### Package Tests
|
||||||
`git checkout master && git pull && git cherry-pick release && git push`
|
|
||||||
|
|
||||||
|
In order to test the created packages you can download a job's artifacts:
|
||||||
|
|
||||||
### DEB Packages <a id="deb-packages"></a>
|
Visit [git.icinga.com](https://git.icinga.com/packaging/rpm-icingaweb2)
|
||||||
|
and navigate to the respective pipeline under `CI / CD -> Pipelines`.
|
||||||
|
|
||||||
|
There click on the job you want to download packages from:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
The job's output appears. On the right-hand sidebar you can browse its artifacts:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Once there, navigate to `build/RPMS/noarch` where you'll find the packages.
|
||||||
|
|
||||||
|
### Release Packages
|
||||||
|
|
||||||
|
To build release packages and upload them to [packages.icinga.com](https://packages.icinga.com)
|
||||||
|
tag the release commit and push it.
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone git@github.com:icinga/deb-icingaweb2.git && cd deb-icingaweb2
|
git tag -s 2.7.0-1
|
||||||
|
git push origin 2.7.0-1
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Branch Workflow
|
Now cherry pick the release commit to `master` so that the changes are transferred back to it.
|
||||||
|
|
||||||
**Major releases** are branched off `master`.
|
**Attention**: Only the release commit. *NOT* the one switching the build type!
|
||||||
|
|
||||||
```
|
## Release Tests
|
||||||
git checkout master && git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
**Bugfix releases** are created in the `release` branch and later merged to master.
|
|
||||||
|
|
||||||
```
|
|
||||||
git checkout release && git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Release Commit
|
|
||||||
|
|
||||||
Set the `Version`, `Revision` and `changelog` by using the `dch` helper.
|
|
||||||
|
|
||||||
```
|
|
||||||
VERSION=2.6.3
|
|
||||||
|
|
||||||
./dch $VERSION-1 "Update to $VERSION"
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
git commit -av -m "Release $VERSION-1"
|
|
||||||
git push
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
**Note for major releases**: Update release branch to latest.
|
|
||||||
|
|
||||||
```
|
|
||||||
git checkout release && git pull && git merge master && git push
|
|
||||||
```
|
|
||||||
|
|
||||||
**Note for minor releases**: Cherry-pick the release commit into master.
|
|
||||||
|
|
||||||
```
|
|
||||||
git checkout master && git pull && git cherry-pick release && git push
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
#### DEB with dch on macOS
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run -v `pwd`:/mnt/packaging -ti ubuntu:bionic bash
|
|
||||||
|
|
||||||
apt-get update && apt-get install git ubuntu-dev-tools vim -y
|
|
||||||
cd /mnt/packaging
|
|
||||||
|
|
||||||
git config --global user.name "Eric Lippmann"
|
|
||||||
git config --global user.email "eric.lippmann@icinga.com"
|
|
||||||
|
|
||||||
VERSION=2.6.3
|
|
||||||
|
|
||||||
./dch $VERSION-1 "Update to $VERSION"
|
|
||||||
```
|
|
||||||
|
|
||||||
## Build Server <a id="build-server"></a>
|
|
||||||
|
|
||||||
* Verify package build changes for this version.
|
|
||||||
* Test the snapshot packages for all distributions beforehand.
|
|
||||||
* Build the newly created Git tag for Debian/RHEL/SuSE.
|
|
||||||
* Wait until all jobs have passed and then publish them one by one with `allow_release`
|
|
||||||
|
|
||||||
## Release Tests <a id="release-tests"></a>
|
|
||||||
|
|
||||||
* Provision the vagrant boxes and test the release packages.
|
* Provision the vagrant boxes and test the release packages.
|
||||||
* * Start a new docker container and install/run Icinga Web 2 & icingacli.
|
* * Start a new docker container and install/run Icinga Web 2 & icingacli.
|
||||||
@ -258,22 +226,20 @@ apt-get -y install icingaweb2 icingacli
|
|||||||
icingacli
|
icingacli
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## GitHub Release
|
||||||
## GitHub Release <a id="github-release"></a>
|
|
||||||
|
|
||||||
Create a new release for the newly created Git tag: https://github.com/Icinga/icingaweb2/releases
|
Create a new release for the newly created Git tag: https://github.com/Icinga/icingaweb2/releases
|
||||||
|
|
||||||
> Hint: Choose [tags](https://github.com/Icinga/icingaweb2/tags), pick one to edit and
|
> Hint: Choose [tags](https://github.com/Icinga/icingaweb2/tags), pick one to edit and
|
||||||
> make this a release. You can also create a draft release.
|
> make this a release. You can also create a draft release.
|
||||||
|
|
||||||
The release body should contain a short changelog, with links
|
Use the changelog for the release body.
|
||||||
into the roadmap, changelog and blogpost.
|
|
||||||
|
|
||||||
### Online Documentation <a id="online-documentation"></a>
|
## Online Documentation
|
||||||
|
|
||||||
This is built with a daily cronjob.
|
This is built with a daily cronjob.
|
||||||
|
|
||||||
#### Manual Updates
|
### Manual Updates
|
||||||
|
|
||||||
SSH into the webserver or ask [bobapple](https://github.com/bobapple).
|
SSH into the webserver or ask [bobapple](https://github.com/bobapple).
|
||||||
|
|
||||||
@ -281,13 +247,13 @@ SSH into the webserver or ask [bobapple](https://github.com/bobapple).
|
|||||||
cd /usr/local/icinga-docs-tools && ./build-docs.rb -c /var/www/docs/config/icingaweb2-latest.yml
|
cd /usr/local/icinga-docs-tools && ./build-docs.rb -c /var/www/docs/config/icingaweb2-latest.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Announcement <a id="announcement"></a>
|
## Announcement
|
||||||
|
|
||||||
* Create a new blog post on [icinga.com/blog](https://icinga.com/blog) including a featured image
|
* Create a new blog post on [icinga.com/blog](https://icinga.com/blog) including a featured image
|
||||||
* Create a release topic on [community.icinga.com](https://community.icinga.com)
|
* Create a release topic on [community.icinga.com](https://community.icinga.com)
|
||||||
* Release email to net-tech & team
|
* Release email to net-tech & team
|
||||||
|
|
||||||
### Project Management <a id="project-management"></a>
|
## Project Management
|
||||||
|
|
||||||
* Add new minor version on [GitHub](https://github.com/Icinga/icingaweb2/milestones).
|
* Add new minor version on [GitHub](https://github.com/Icinga/icingaweb2/milestones).
|
||||||
* Close the released version on [GitHub](https://github.com/Icinga/icingaweb2/milestones).
|
* Close the released version on [GitHub](https://github.com/Icinga/icingaweb2/milestones).
|
||||||
|
BIN
doc/res/gitlab-job-artifacts.png
Normal file
BIN
doc/res/gitlab-job-artifacts.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
BIN
doc/res/gitlab-rpm-package-pipeline-jobs.png
Normal file
BIN
doc/res/gitlab-rpm-package-pipeline-jobs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
Loading…
x
Reference in New Issue
Block a user