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 837B

1234567891011121314151617181920
  1. pipeline:
  2. assets:
  3. image: images.abackstrom.com/sass
  4. commands:
  5. - sassc -t compressed 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/rsync-ssh
  12. commands:
  13. - rsync -hrz --delete -C -e ssh ./output ./nginx ./assets deploy.sixohthree.com:/tmp/drone_${DRONE_JOB_NUMBER}_${DRONE_COMMIT_SHA}
  14. - pdsh -w ssh:web[04-05].sixohthree.com "rsync -hrz --delete -C -e ssh deploy.sixohthree.com:/tmp/drone_${DRONE_JOB_NUMBER}_${DRONE_COMMIT_SHA}/ /var/sixohthree/sixohthree.com/"
  15. - pdsh -w ssh:web[04-05].sixohthree.com "sudo systemctl reload nginx"
  16. - ssh deploy.sixohthree.com "rm -rf /tmp/drone_${DRONE_JOB_NUMBER}_${DRONE_COMMIT_SHA}"
  17. branches: master