Changes for latest DroneCI #37

Merged
tboerger merged 1 commits from drone-upgrade into master 2017-09-07 17:16:17 +00:00

View File

@ -1,6 +1,13 @@
workspace:
base: /srv/app
path: src
clone:
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
build:
image: webhippie/hugo:latest
@ -10,7 +17,9 @@ pipeline:
- make build
docker:
image: plugins/docker
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
repo: gitea/blog
tags: [ '${DRONE_BRANCH##release/v}' ]
when:
@ -18,7 +27,9 @@ pipeline:
branch: [ release/* ]
docker:
image: plugins/docker
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
repo: gitea/blog
tags: [ 'latest' ]
when:
@ -26,9 +37,9 @@ pipeline:
branch: [ master ]
discord:
image: appleboy/drone-discord
webhook_id: ${WEBHOOK_ID}
webhook_token: ${WEBHOOK_TOKEN}
image: appleboy/drone-discord:1.0.0
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]
when:
event: [ push, tag, pull_request ]
status: [ changed, failure ]