diff options
author | Sven Gothel <[email protected]> | 2020-01-05 00:52:45 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-01-05 00:52:45 +0100 |
commit | 91db9a7221db6d5af963da2b586c4875c19d048b (patch) | |
tree | 761f4537fc3d826f2ce63e857c61ae4c1666c359 /jenkins-builds/promote-to-release-ssh-git.sh | |
parent | 8e1e55d13b3cbd5a2744314b7285171a8a3ecd2f (diff) |
New release script: promote-to-release.sh
This is essentially a simplified variant as it only copies the aggregated folder
and creates the symbolic link in the deployment root dir.
The remote shell commands kicking-off release promotion on the server
from our home-machine, jenkins-builds/promote-to-release-ssh-*.sh
do pull the resulting sha512sum.txt, gpg-sign it
and push the sha512sum.txt.sig back to the server.
This allows full data integretiy over all aggregrated files
having their sha512 stored in the sha512sum.txt
Diffstat (limited to 'jenkins-builds/promote-to-release-ssh-git.sh')
-rw-r--r-- | jenkins-builds/promote-to-release-ssh-git.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/jenkins-builds/promote-to-release-ssh-git.sh b/jenkins-builds/promote-to-release-ssh-git.sh new file mode 100644 index 0000000..bde6a27 --- /dev/null +++ b/jenkins-builds/promote-to-release-ssh-git.sh @@ -0,0 +1,24 @@ +#! /bin/bash + +version=v2.4.0-rc-20200104 +rootdir=/srv/www/jogamp.org/deployment +adir=archive/master/gluegen_930-joal_652-jogl_1493-jocl_1137 +sdir=archive/rc +urlb=https://jogamp.org/deployment + +ssh [email protected] "\ + cd /home/jogamp/builds ; \ + rm -rf jogamp-scripting ; \ + git clone file:///srv/scm/jogamp-scripting.git jogamp-scripting ; \ + cd jogamp-scripting ; \ + git status ; \ + ./jenkins-builds/promote-to-release.sh \ + $version \ + $rootdir \ + $adir $sdir $urlb ; \ +" + +scp [email protected]:$rootdir/$sdir/$version/sha512sum.txt . +gpg --output sha512sum.txt.sig --detach-sig sha512sum.txt +gpg --verify sha512sum.txt.sig sha512sum.txt && \ +scp sha512sum.txt.sig [email protected]:$rootdir/$sdir/$version/ |