kind: pipeline name: default steps: - name: build image: silex/emacs:27-alpine commands: - apk add hugo git - git submodule update --init --recursive - mkdir blog - emacs --script .export.el - hugo -d blog - name: deploy image: appleboy/drone-scp settings: host: from_secret: ssh_host target: from_secret: ssh_target source: blog/* strip_components: 1 username: from_secret: ssh_username password: from_secret: ssh_password port: from_secret: ssh_port when: branch: - master event: exclude: - pull_request - name: purge cache image: jetrails/drone-cloudflare-caching settings: api_token: from_secret: cloudflare_cache_api zone_identifier: from_secret: phundrak_com_zone_id action: purge_files list: - https://blog.phundrak.com when: branch: - master event: exclude: - pull_request