Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-24 06:21:38 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-24 06:21:38 +0300
commit2a3dec88669b8362a4f30ea76e916034eebf342f (patch)
tree06c1a2e070b2a880ba61b8a35a501439debb7ffc /utils
parent0ae1bf6f037010b5599d12196b155bbf2cece9ba (diff)
Add a procedure to update docker image
Diffstat (limited to 'utils')
-rwxr-xr-xutils/bump_docker.sh16
-rw-r--r--utils/release-checklist2
2 files changed, 18 insertions, 0 deletions
diff --git a/utils/bump_docker.sh b/utils/bump_docker.sh
new file mode 100755
index 000000000..436aaef10
--- /dev/null
+++ b/utils/bump_docker.sh
@@ -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
diff --git a/utils/release-checklist b/utils/release-checklist
index 679983283..170b2417e 100644
--- a/utils/release-checklist
+++ b/utils/release-checklist
@@ -15,6 +15,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``
@@ -101,6 +102,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``