123456789101112131415161718192021222324252627282930313233343536 |
- pipeline:
- modify_staging:
- image: debian:stretch
- commands:
- - mv content/_meta-staging.md 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 content/config.yml
- when:
- branch: master
-
- deploy_staging:
- image: appleboy/drone-scp
- host: gitlab.karathan.at
- port: 22
- target: "/var/www/blog"
- source: "*"
- secrets: [ ssh_password, ssh_username ]
- when:
- branch: master
|