]>
git.immae.eu Git - github/fretlink/ansible-clever.git/blob - files/clever-wait-deploy.sh
8 function cleverActivity
{
9 lastCleverActivity
=$(clever activity)
15 echo "✗ Deployment failed!"
24 checkStatus
"$1" "IN PROGRESS"
32 checkStatus
"$1" "" "-v"
35 function checkStatus
{
40 echo "${lastCleverActivity}" | tail -n1 | grep ${3:+ "${3}"} -q -E "${status}.*DEPLOY.*${commit}"
44 if [ -n "${VERBOSE}" ]; then
45 echo -e "\\nLast clever activity:"
46 echo -e "${lastCleverActivity}\\n"
54 echo "️▫ Waiting for deployment to start..."
55 while inactive
"$commit"
62 echo "▪ Deployment in progress..."
63 while deploying
"$commit"
70 echo "✓ Deployment done."
76 git
--git-dir="$chdir" rev-parse HEAD
80 check
"$(getHeadRev "${workdir}")"