Skip to content

Commit

Permalink
Add a procedure to update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Mar 5, 2020
1 parent bd38b98 commit 6e974cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions utils/bump_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -ex

if [ -z "$1" ]; then
echo "bump_docker.sh [VERSION]"
exit
fi

cd docker
git checkout .
sed -i "" -e "s/==[0-9.]\{1,\}/==$1/" base/Dockerfile
sed -i "" -e "s/==[0-9.]\{1,\}/==$1/" latexpdf/Dockerfile
git commit -am "Bump to $1"
git tag $1
git push origin master --tags
2 changes: 2 additions & 0 deletions utils/release-checklist
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ for stable releases
* ``twine check dist/Sphinx-*``
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
* ``sh utils/bump_docker.sh X.Y.Z``
* ``git tag vX.Y.Z``
* ``python utils/bump_version.py --in-develop X.Y.Zb0`` (ex. 1.5.3b0)
* Check diff by ``git diff``
Expand Down Expand Up @@ -97,6 +98,7 @@ for major releases
* ``twine check dist/Sphinx-*``
* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
* open https://pypi.org/project/Sphinx/ and check there are no obvious errors
* ``sh utils/bump_docker.sh X.Y.Z``
* ``git tag vX.Y.0``
* ``python utils/bump_version.py --in-develop X.Y.1b0`` (ex. 1.6.1b0)
* Check diff by ``git diff``
Expand Down

0 comments on commit 6e974cd

Please sign in to comment.