mirror of
https://github.com/InsanusMokrassar/JenkinsDocker.git
synced 2026-01-22 20:07:49 +00:00
add autoupdater
This commit is contained in:
11
autoupdate.sh
Executable file
11
autoupdate.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user