Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
8f29e112
Commit
8f29e112
authored
7 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Automate and document more of the release process.
parent
03ecc73a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RELEASE.md
+60
-35
60 additions, 35 deletions
RELEASE.md
with
60 additions
and
35 deletions
RELEASE.md
+
60
−
35
View file @
8f29e112
Upstream
========
*
update version in
`configure.in`
*
prepare the environment:
*
update first line of
`ChangeLog`
export VERSION=x.y.z
*
commit:
*
update
`configure.in`
and
`ChangeLog`
git commit configure.in ChangeLog \
-m "Releasing backupninja $VERSION"
perl -pi -E \
"s{^AC_INIT\(\[backupninja\],\[[0-9.]+\],}{AC_INIT([backupninja],[$VERSION],}" \
configure.in && \
RELEASE_DATE=$(LC_ALL=C date '+%B %d, %Y') perl -pi -E \
"s{^version\s+[0-9.]+\s+--\s+UNRELEASED$}{version $VERSION -- $RELEASE_DATE}" \
ChangeLog
*
create the tarball:
*
commit, tag and
create the tarball:
git commit configure.in ChangeLog \
-m "Releasing backupninja $VERSION" && \
git clean -fdx && \
git tag -s "backupninja-$VERSION" \
-m "Releasing backupninja $VERSION"
./autogen.sh
./configure
-m "Releasing backupninja $VERSION"
&& \
./autogen.sh
&& \
./configure
&& \
make dist
*
compare the content of the generated tarball with the content of the
previous one
*
`mv backupninja-$VERSION.tar.gz ../tarballs/`
*
move the tarball outside of the Git working copy and clean up:
mkdir -p ../tarballs && \
mv backupninja-$VERSION.tar.gz ../tarballs/ && \
make distclean && \
git clean -fdx
*
cleanup:
`make distclean`
*
Install (extract tarball,
`.configure && make && sudo make install`
)
and test.
Debian
======
*
sign the releas
e:
Prepare a new packag
e:
cd ../tarballs
gpg --armor --detach-sign backupninja-$VERSION.tar.gz
git checkout debian && \
gbp import-orig --upstream-vcs-tag="backupninja-$VERSION" \
../tarballs/backupninja-$VERSION.tar.gz && \
gbp dch --auto && \
dch -e && \
export DEBIAN_VERSION=$(dpkg-parsechangelog -SVersion) && \
git commit debian/changelog \
-m "Releasing backupninja ($DEBIAN_VERSION) to Debian unstable" && \
gbp buildpackage
*
upload the generated tarball and detached signature to
https://0xacab.org/riseuplabs/backupninja/
Install the
`.deb`
and test.
*
push master branch and tags:
Release
=======
git push origin master --follow-tags
*
sign the release and push it to Git:
*
announce on the backupninja mailing-list
gpg --armor --detach-sign \
../tarballs/backupninja-$VERSION.tar.gz && \
git checkout debian && \
gbp buildpackage --git-tag-only --git-sign-tags && \
git push --follow-tags origin \
master:master \
debian:debian \
pristine-tar:pristine-tar \
upstream:upstream
Debian
======
*
upload the upstream tarball and detached signature to the GitLab
milestone page with
*Edit*
→
*Attach a file*
*
announce the release on the backupninja mailing-list,
pointing to the milestone web page
*
upload to Debian or ask someone listed in the
`Uploaders`
control
field to review and upload
ln -s backupninja-$VERSION.tar.gz backupninja_$VERSION.orig.tar.gz
cd ../git
git checkout debian
gbp import-orig --upstream-vcs-tag="backupninja-$VERSION"
\
../tarballs/backupninja-$VERSION.tar.gz
gbp dch --auto
dch -e
git commit debian/changelog -m "Releasing backupninja ($DEBIAN_VERSION) to Debian unstable"
git tag -s -m "Releasing backupninja ($DEBIAN_VERSION) to Debian unstable" backupninja_debian/$DEBIAN_VERSION
gbp buildpackage
Open the next development cycle
===============================
*
push the
`debian`
branch
*
publish the source package somewhere
*
ask someone listed in the
`Uploaders`
control field to review and upload
*
push the tag, once uploaded to Debian
*
`git checkout master`
*
Add an empty new section in
`ChangeLog`
, commit and push.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment