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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
8f29e112
Commit
8f29e112
authored
Sep 5, 2017
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Automate and document more of the release process.
parent
03ecc73a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show 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
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 \
perl -pi -E \
-m "Releasing backupninja $VERSION"
"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" \
git tag -s "backupninja-$VERSION" \
-m "Releasing backupninja $VERSION"
-m "Releasing backupninja $VERSION"
&& \
./autogen.sh
./autogen.sh
&& \
./configure
./configure
&& \
make dist
make dist
*
compare the content of the generated tarball with the content of the
*
compare the content of the generated tarball with the content of the
previous one
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
git checkout debian && \
gpg --armor --detach-sign backupninja-$VERSION.tar.gz
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
Install the
`.deb`
and test.
https://0xacab.org/riseuplabs/backupninja/
*
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
Open the next development cycle
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
*
push the
`debian`
branch
*
`git checkout master`
*
publish the source package somewhere
*
Add an empty new section in
`ChangeLog`
, commit and push.
*
ask someone listed in the
`Uploaders`
control field to review and upload
*
push the tag, once uploaded to Debian
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