add autoupdater

This commit is contained in:
2023-11-18 16:43:07 +06:00
parent 2737e72ee3
commit e1be082270
3 changed files with 13 additions and 2 deletions

11
autoupdate.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if [ -z "$1" ]; then
newVersion="2.246.1"
else
newVersion="$1"
fi
sed -i -E "s/[0-9\.]+\/jenkins.war/${newVersion}\/jenkins.war/g" Dockerfile
sed -i -E "s/version=\"[0-9\.]+\"/version=\"${newVersion}\"/g" deploy