Skip to content

Instantly share code, notes, and snippets.

@narqo
Last active July 5, 2016 09:33
Show Gist options
  • Save narqo/5fdda706617edd6b17f9088d23a40b4d to your computer and use it in GitHub Desktop.
Save narqo/5fdda706617edd6b17f9088d23a40b4d to your computer and use it in GitHub Desktop.
: ${DOCKER:=docker}
# fix git detached clone
git repack -a -d && rm -f .git/objects/info/alternates
# update the changelog inside a container
$DOCKER run --rm -v $PWD:/tmp/build -w /tmp/build \
-e "EDITOR=/bin/true" \
-e "DEBEMAIL=$DEBEMAIL" -e "DEBFULLNAME=$DEBFULLNAME" -e "DEB_VENDOR=debian" \
registry.ape.yandex.net/vertis/buildbox-buildpkg:1.trusty \
sh -c 'git dch --ignore-branch --distribution unstable --urgency low --release --auto'
dch -a "Build #${BUILD_NUMBER} (${BUILD_VCS_NUMBER}) by %teamcity.build.triggeredBy%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment