Files
marquiz-metrics/.drone.yml
13orlov 300117822d
Some checks failed
continuous-integration/drone/push Build is failing
feat(ci): Implement final deployment script and pipeline
2025-08-31 00:18:46 +01:00

34 lines
798 B
YAML

kind: pipeline
type: docker
name: build-and-deploy-staging
trigger:
branch:
- staging
event:
- push
steps:
- name: testing
image: python:3.11-slim
environment:
YANDEX_CLIENT_ID: "test_id_from_drone"
YANDEX_CLIENT_SECRET: "test_secret_from_drone"
commands:
- pip install poetry
- poetry install
- poetry run pytest -v
- name: deploy
image: appleboy/drone-ssh
settings:
host: 45.86.181.80
port: 2223
username: orlov
key:
from_secret: DEPLOY_STAG_SSH_KEY
script:
# Эти команды выполняются на VDS
- cd /home/orlov/apps/marquiz-metrics-staging
- git pull
- ./scripts/deploy.sh # Просто запускаем наш умный скрипт