Blog-style website for karathan using the self-made Stellar Theme powered by HTML5Up http://blog.karathan.at

.drone.yml 909B

12345678910111213141516171819202122232425262728293031323334353637
  1. pipeline:
  2. modify_staging:
  3. image: alpine/git
  4. commands:
  5. - mv content/_meta-staging.md content/_meta.md
  6. - sed -i s/{0xDEADBEEF}/$(git rev-parse --short HEAD)/g content/_meta.md
  7. - mv config/config-staging.yml config/config.yml
  8. when:
  9. branch: staging
  10. deploy_staging:
  11. image: appleboy/drone-scp
  12. host: gitlab.karathan.at
  13. port: 22
  14. target: "/var/www/blog-staging"
  15. source: "*"
  16. secrets: [ ssh_password, ssh_username ]
  17. when:
  18. branch: staging
  19. modify_production:
  20. image: debian:stretch
  21. commands:
  22. - mv content/_meta-live.md content/_meta.md
  23. - mv config/config-live.yml config/config.yml
  24. when:
  25. branch: master
  26. deploy_production:
  27. image: appleboy/drone-scp
  28. host: gitlab.karathan.at
  29. port: 22
  30. target: "/var/www/blog"
  31. source: "*"
  32. secrets: [ ssh_password, ssh_username ]
  33. when:
  34. branch: master