Files
marquiz-metrics/.drone.yml
13orlov 53883754b5
All checks were successful
continuous-integration/drone/push Build is passing
feat(security): Migrate to git-crypt for ebaniy secrets management
2025-08-31 19:37:36 +01:00

28 lines
741 B
YAML

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!"