File indexing completed on 2022-12-06 14:51:34

0001 #!/bin/bash
0002 
0003 # Docker hub removed their trigger API so here's a simple script I run on my own server to push an empty commit
0004 # which will trigger a build of all the images
0005 # Jonathan Riddell 2019-11-28
0006 # May be freely copied under the GNU GPL version 3 or later
0007 
0008 set -xe
0009 
0010 REPOS='docker-neon docker-neon-all'
0011 
0012 BRANCHES='Neon/release-lts Neon/release Neon/stable Neon/unstable Neon/unstable-development master'
0013 
0014 cd /home/jr/src/docker-neon
0015 
0016 for repo in $REPOS; do
0017   cd $repo
0018   for branch in $BRANCHES; do
0019     git checkout ${branch}
0020     git commit --allow-empty -m 'empty push for hub.docker trigger'
0021     git push
0022   done
0023   cd -
0024 done