mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Merge pull request #2298 from letsencrypt/fix-release-script
Fix release script
This commit is contained in:
+15
-18
@@ -81,21 +81,6 @@ if [ "$RELEASE_BRANCH" != "candidate-$version" ] ; then
|
|||||||
fi
|
fi
|
||||||
git checkout "$RELEASE_BRANCH"
|
git checkout "$RELEASE_BRANCH"
|
||||||
|
|
||||||
# ensure we have the latest built version of leauto
|
|
||||||
letsencrypt-auto-source/build.py
|
|
||||||
|
|
||||||
# and that it's signed correctly
|
|
||||||
if ! openssl dgst -sha256 -verify $RELEASE_OPENSSL_PUBKEY -signature \
|
|
||||||
letsencrypt-auto-source/letsencrypt-auto.sig \
|
|
||||||
letsencrypt-auto-source/letsencrypt-auto ; then
|
|
||||||
echo Failed letsencrypt-auto signature check on "$RELEASE_BRANCH"
|
|
||||||
echo please fix that and re-run
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo Signature check on letsencrypt-auto successful
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
SetVersion() {
|
SetVersion() {
|
||||||
ver="$1"
|
ver="$1"
|
||||||
for pkg_dir in $SUBPKGS letsencrypt-compatibility-test
|
for pkg_dir in $SUBPKGS letsencrypt-compatibility-test
|
||||||
@@ -110,9 +95,6 @@ SetVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetVersion "$version"
|
SetVersion "$version"
|
||||||
git commit --gpg-sign="$RELEASE_GPG_KEY" -m "Release $version"
|
|
||||||
git tag --local-user "$RELEASE_GPG_KEY" \
|
|
||||||
--sign --message "Release $version" "$tag"
|
|
||||||
|
|
||||||
echo "Preparing sdists and wheels"
|
echo "Preparing sdists and wheels"
|
||||||
for pkg_dir in . $SUBPKGS
|
for pkg_dir in . $SUBPKGS
|
||||||
@@ -175,6 +157,21 @@ for module in letsencrypt $subpkgs_modules ; do
|
|||||||
done
|
done
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
|
# ensure we have the latest built version of leauto
|
||||||
|
letsencrypt-auto-source/build.py
|
||||||
|
|
||||||
|
# and that it's signed correctly
|
||||||
|
while ! openssl dgst -sha256 -verify $RELEASE_OPENSSL_PUBKEY -signature \
|
||||||
|
letsencrypt-auto-source/letsencrypt-auto.sig \
|
||||||
|
letsencrypt-auto-source/letsencrypt-auto ; do
|
||||||
|
read -p "Please correctly sign letsencrypt-auto with offline-signrequest.sh"
|
||||||
|
done
|
||||||
|
|
||||||
|
git diff --cached
|
||||||
|
git commit --gpg-sign="$RELEASE_GPG_KEY" -m "Release $version"
|
||||||
|
git tag --local-user "$RELEASE_GPG_KEY" \
|
||||||
|
--sign --message "Release $version" "$tag"
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
echo Now in $PWD
|
echo Now in $PWD
|
||||||
name=${root_without_le%.*}
|
name=${root_without_le%.*}
|
||||||
|
|||||||
Reference in New Issue
Block a user