keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Dmitry Kosolapov home 3 years ago committed by Andrei Dekterev
parent ddc13e0152
commit a03bca84eb
  1. 1
      .drone.yml
  2. 8
      run.sh

@ -42,3 +42,4 @@ steps:
- mkdir -p ~/.ssh && chmod 700 ~/.ssh - mkdir -p ~/.ssh && chmod 700 ~/.ssh
- ssh-keyscan auth.insports.tv >> ~/.ssh/known_hosts - ssh-keyscan auth.insports.tv >> ~/.ssh/known_hosts
- rsync -v -r -C build_auth/ ubuntu@auth.insports.tv:/home/ubuntu/ott-auth/src/frontend/build_auth - rsync -v -r -C build_auth/ ubuntu@auth.insports.tv:/home/ubuntu/ott-auth/src/frontend/build_auth
- ssh ubuntu@auth.insports.tv 'bash -s' < ./run.sh OTT-2535 docker-compose-stage.yaml

@ -0,0 +1,8 @@
#!/bin/bash
branch=$1
composefile=$2
cd /home/ubuntu/ott-auth
docker-compose -f $composefile restart
echo "[>] Deployment done."
Loading…
Cancel
Save