-
-
Couldn't load subscription status.
- Fork 1.1k
Release
Christian Mäder edited this page Dec 21, 2019
·
17 revisions
- Make sure you're on the
developbranch:git checkout develop - Make sure, that the branch is clean:
git statusshould not show any pending change.- Use
git stashto stash them away for the release process.
- Use
- Merge any relevant feature into
develop. Either via Github PRs (make sure the PR targets thedevelopbranch!) or manually:- Create a new local branch:
git checkout -b feature-name develop - Pull the remote change into the current branch:
git pull https://github.com/other-user-or-org/netbox-docker.git remote-branch-name - Check whether the build still works:
./build.sh - Switch back to your
developbranch:git checkout develop - Merge the feature into the
developbranch:git merge --no-ff feature-name - Clean up your local branches:
git branch -d feature-name
- Create a new local branch:
- Put the new version into the
VERSIONfile:echo "0.20.0" > VERSION - Make a commit with the version file change:
git commit -m "Preparation for $(cat VERSION)" VERSION - Push the branch and make a new PR on Github from
developtorelease
Now another maintainer has to approve the PR.
After the PR is merged, tag that commit:
- Either locally:
- Checkout the
releasebranch - Update to the latest version:
git pull -pr origin release - Create the tag:
git tag "$(cat VERSION)" - Push the tag:
git push origin --tags
- Checkout the
- Or on Github:
- Go to the Release Page
- Click Draft a New Release
- Choose the
releasebranch - Enter the exact value of the
VERSIONfile into the Tag field.
Now go to Github and draft a new release. Copy the text from the most recent previous release and adjust it according to the new release.
Eventually announce the release on our Slack channel.