You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 799B

1234567891011121314151617181920212223
  1. pipeline:
  2. assets:
  3. image: images.abackstrom.com/sass
  4. commands:
  5. - sass --cache-location /tmp assets/css/main.scss:assets/css/main.css
  6. content:
  7. image: images.abackstrom.com/pelican
  8. commands:
  9. - pelican content -o output -s publishconf.py
  10. deploy:
  11. image: images.abackstrom.com/sixohthree
  12. secrets: [ ssh_private_key, ssh_host_key ]
  13. commands:
  14. - mkdir "$${HOME}/.ssh"
  15. - echo -n "$${SSH_PRIVATE_KEY}" > "$${HOME}/.ssh/id_rsa"
  16. - chmod 700 "$${HOME}/.ssh/id_rsa"
  17. - echo "$${SSH_HOST_KEY}" >> "$${HOME}/.ssh/known_hosts"
  18. - rsync -hrz --delete -C --exclude=".*" -e ssh ./output ./nginx ./assets deploy@web04.sixohthree.com:sixohthree.com/
  19. - ssh deploy@web04.sixohthree.com 'sudo /usr/sbin/service nginx reload'
  20. branches: master