infra/codestorage/hg-ssh

Paddy 2015-10-14 Parent:121585c71fd7

3:bc0c83d5015d Go to Latest

infra/codestorage/hg-ssh/post-commit-broadcast.sh

Use the relative DNS address. Use the relative DNS address when digging for web frontends, which now works thanks to +search on dig. This allows us to transfer between namespaces without needing to change anything. Also makes this, in general, more flexible.

History
     1.1 --- a/post-commit-broadcast.sh	Wed Oct 14 20:55:18 2015 -0700
     1.2 +++ b/post-commit-broadcast.sh	Wed Oct 14 23:01:04 2015 -0700
     1.3 @@ -15,7 +15,7 @@
     1.4  	exit 0
     1.5  fi
     1.6  
     1.7 -FRONTENDS=$(dig mercurial-uwsgi-headless.default.svc.cluster.local +short)
     1.8 +FRONTENDS=$(dig mercurial-uwsgi-headless +short +search)
     1.9  for fe in $FRONTENDS
    1.10  do
    1.11  	hg push http://${fe}:8080/${stripped}