Specified branch

This commit is contained in:
2022-05-10 02:36:21 +03:00
parent 7e93d9374b
commit bb9c9c7587

View File

@@ -12,15 +12,16 @@ steps:
SSH_KEY: SSH_KEY:
from_secret: SSH_KEY from_secret: SSH_KEY
commands: commands:
- git clone https://git.radner.ru/anatolykopyl/worktime.git - git clone -b cloud-saves https://git.radner.ru/anatolykopyl/worktime.git
- cd worktime - cd worktime/frontend
- npm install - npm install
- npm run build - npm run build
- mkdir ~/.ssh - mkdir ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_rsa - echo "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa - chmod 400 ~/.ssh/id_rsa
- scp -o StrictHostKeyChecking=no -r dist/* webmaster@worktime.anatolykopyl.ru:~/www/worktime.anatolykopyl.ru - scp -o StrictHostKeyChecking=no -r dist/* webmaster@worktime.anatolykopyl.ru:~/www/worktime.anatolykopyl.ru
when:
trigger:
branch: branch:
- cloud-saves - cloud-saves