File: bump_docker.sh

package info (click to toggle)
sphinx 4.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,656 kB
  • sloc: python: 74,641; javascript: 14,242; perl: 420; makefile: 247; sh: 57; xml: 19; ansic: 1
file content (16 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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