kind: pipeline type: docker name: build-and-deploy-staging trigger: branch: - staging event: - push steps: # Тестирование мы пока пропустим, чтобы отладить деплой - name: deploy image: appleboy/drone-ssh settings: host: 45.86.181.80 port: 2223 username: orlov key: from_secret: DEPLOY_STAG_SSH_KEY script: - cd /home/orlov/apps/marquiz-metrics-staging - git pull # git-crypt сам расшифрует файлы после pull, так как мы сделали unlock на VDS - cat envs/common.env envs/staging.env > .env.staging - make staging-up - echo "Deployment finished!"