12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- ---
- ##################
- # Build & Publish#
- ##################
- kind: pipeline
- name: build and publish
- steps:
- - name: build
- image: hugomods/hugo
- commands:
- - hugo -d /tmp/.build/public
- volumes:
- - name: hugo
- path: /tmp/.build/public
- - name: publish
- image: drillster/drone-rsync
- settings:
- user: root
- delete: true
- recursive: true
- args: "-v"
- key:
- from_secret: unbl_ink_key
- hosts:
- - box.unbl.ink
- source: /tmp/.build/public/
- target: /home/user-data/www/onec.me/
- secrets: [ key ]
- volumes:
- - name: hugo
- path: /tmp/.build/public
- - name: build success notification
- image: parrazam/drone-ntfy:0.3-linux-amd64
- when:
- status: [success]
- settings:
- url: https://ntfy.unbl.ink
- topic: drone
- priority: low
- tags:
- - cd
- - failure
- - onecme_web
- - name: build failure notification
- image: parrazam/drone-ntfy:0.3-linux-amd64
- when:
- status: [failure]
- settings:
- url: https://ntfy.unbl.ink
- topic: drone
- priority: high
- tags:
- - cd
- - success
- - onecme_web
- volumes:
- - name: docker
- host:
- path: /var/run/docker.sock
- - name: hugo
- host:
- path: /tmp/cache/drone/hugo
|