Изменил(а) на '.drone.yml'

main
vladimirkutkovoy 1 year ago
parent c3c372d2e7
commit c44e99d01d
  1. 21
      .drone.yml

@ -2,11 +2,30 @@ kind: pipeline
name: default name: default
steps: steps:
- name: test_node123 - name: build
image: node image: node
commands: commands:
- npm install - npm install
- npm run build - npm run build
- name: deploy
image: alpine
environment:
HOST: blog.example.ru
USER: droneci
WEB_DIR: /var/www/blog.example.ru/
SSH_KEY:
from_secret: ssh_key
commands:
- apk add --no-cache rsync openssh
- mkdir ~/.ssh/
- chmod 0700 ~/.ssh
- echo -e "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 0600 ~/.ssh/id_rsa
- echo StrictHostKeyChecking no >> ~/.ssh/config
- chmod 0600 ~/.ssh/config
- rsync -rvzc --chmod=g=rwX --delete public/ $USER@$HOST:$WEB_DIR
- name: telegram notification - name: telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:

Loading…
Cancel
Save