kind: pipeline name: blog type: docker clone: depth: 1 steps: - name: hugo image: code.ndumas.com/ndumas/hugo commands: - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com - name: publish depends_on: - hugo image: drillster/drone-rsync settings: key: from_secret: BLOG_DEPLOY_KEY user: blog delete: true recursive: true hosts: ["blog.ndumas.com"] source: /drone/src/public/ target: /var/www/blog.ndumas.com/ include: ["*"] when: branch: include: - main --- kind: pipeline name: dev type: docker clone: depth: 1 steps: - name: hugo image: code.ndumas.com/ndumas/hugo commands: - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com - name: publish depends_on: - hugo image: drillster/drone-rsync settings: key: from_secret: BLOG_DEPLOY_KEY user: blog delete: true recursive: true hosts: ["blog.ndumas.com"] source: /drone/src/public/ target: /var/www/dev.blog.ndumas.com/ include: ["*"] when: branch: include: - dev --- kind: pipeline name: drafts type: docker clone: depth: 1 steps: - name: hugo image: code.ndumas.com/ndumas/hugo commands: - hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com - name: publish depends_on: - hugo image: drillster/drone-rsync settings: key: from_secret: BLOG_DEPLOY_KEY user: blog delete: true recursive: true hosts: ["blog.ndumas.com"] source: /drone/src/public/ target: /var/www/drafts.blog.ndumas.com/ include: ["*"] when: branch: include: - main