~evanj/cms

60bdb331828374d252c56bfe4380e2cfea319b3e — Evan M Jones 4 months ago 78169cb
Fix(.build.yml): Update build for static dir.
1 files changed, 2 insertions(+), 0 deletions(-)

M .build.yml
M .build.yml => .build.yml +2 -0
@@ 16,11 16,13 @@ tasks:
        echo "deploying to production"
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/cms/cms 2>/dev/null"'
        scp -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms
        scp -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/cms
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart cms"'
      elif [ `git branch | head -n 1 | awk '{print$5}' | sed 's/)//g' | xargs -I X bash -c "git log --pretty=oneline origin/tip | head -n 1 | grep X" | wc -l` == "1" ]; then
        echo "deploying to tip"
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/cms.tip/cms 2>/dev/null"'
        scp -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms.tip
        scp -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/cms.tip
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart cms.tip"'
      else 
        echo "not deploying"