12345678910111213141516171819202122232425262728293031323334353637 |
- pipeline:
- modify_staging:
- image: debian:stretch
- commands:
- - mv content/_meta-staging.md content/_meta.md
- - sed -i s/{0xDEADBEEF}/$(git rev-parse --short HEAD)/g content/_meta.md
- - mv config/config-staging.yml config/config.yml
- when:
- branch: staging
-
- deploy_staging:
- image: appleboy/drone-scp
- host: gitlab.karathan.at
- port: 22
- target: "/var/www/blog-staging"
- source: "*"
- secrets: [ ssh_password, ssh_username ]
- when:
- branch: staging
-
- modify_production:
- image: debian:stretch
- commands:
- - mv content/_meta-live.md content/_meta.md
- - mv config/config-live.yml config/config.yml
- when:
- branch: master
-
- deploy_production:
- image: appleboy/drone-scp
- host: gitlab.karathan.at
- port: 22
- target: "/var/www/blog"
- source: "*"
- secrets: [ ssh_password, ssh_username ]
- when:
- branch: master
|