summaryrefslogtreecommitdiff
path: root/buildbot/sign.sh
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-16 21:38:39 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-16 21:38:39 +0200
commitca74777ce76302eb14780047446bec1c521e0e17 (patch)
tree2e3735910ad3cefe5dcb588af2a604572f701120 /buildbot/sign.sh
parenteefbfc83920e0075df18562223a7e967cb574b38 (diff)
downloaddeployment-ca74777ce76302eb14780047446bec1c521e0e17.tar.gz
deployment-ca74777ce76302eb14780047446bec1c521e0e17.tar.bz2
deployment-ca74777ce76302eb14780047446bec1c521e0e17.zip
BB.
Give each color a worker, and make 'test' manage the color switch (by having itself a dedicate worker.)
Diffstat (limited to 'buildbot/sign.sh')
-rwxr-xr-xbuildbot/sign.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/buildbot/sign.sh b/buildbot/sign.sh
index d095b69..59f994f 100755
--- a/buildbot/sign.sh
+++ b/buildbot/sign.sh
@@ -1,17 +1,11 @@
#!/bin/bash
-DEPLOYMENT="test"
+source "${HOME}/activate"
+ACTIVE_COLOR="$(cat /home/test/active)"
-if test "stable" = ${BRANCH}; then
- DEPLOYMENT="demo"
+if test "${TALER_ENV_COLOR}" = "${ACTIVE_COLOR}"; then
+ echo "I'm the active color, no need to compile and switch!"
+ exit 0
fi
-active=$(sudo -u ${DEPLOYMENT} cat /home/${DEPLOYMENT}/active)
-nonactive="${DEPLOYMENT}-blue"
-echo "Active party: ${active}"
-
-if test $active = "${DEPLOYMENT}-blue"; then
- nonactive="${DEPLOYMENT}-green"
-fi
-
-sudo -u $nonactive bash -c 'source $HOME/activate; taler-deployment-config-sign'
+taler-deployment-config-sign'