chore: update drone format to 1.0 (#93)

This commit is contained in:
Bo-Yi Wu 2019-04-13 22:53:11 +08:00 коммит произвёл Lauris BH
Родитель f956cca15b
Коммит d3f8877a71
1 изменённых файлов: 48 добавлений и 31 удалений

Просмотреть файл

@ -1,37 +1,54 @@
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
workspace: workspace:
base: /srv/app base: /srv/app
path: src path: src
branches: steps:
- name: build
pull: always
image: webhippie/hugo:latest
commands:
- make clean
- make build
- name: publish
pull: always
image: lucap/drone-netlify:latest
settings:
path: public/
site_id: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc
environment:
NETLIFY_TOKEN:
from_secret: netlify_token
when:
event:
- push
- name: discord
pull: always
image: appleboy/drone-discord:1
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
status:
- changed
- failure
trigger:
branch:
- master - master
clone: ...
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
build:
image: webhippie/hugo:latest
pull: true
commands:
- make clean
- make build
publish:
image: lucap/drone-netlify:latest
pull: true
secrets: [ netlify_token ]
site_id: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc
path: public/
when:
event: [ push ]
discord:
image: appleboy/drone-discord:1
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]
when:
event: [ push, tag ]
status: [ changed, failure ]