blog/.drone.yml

46 lines
882 B
YAML
Raw Normal View History

2016-11-08 18:13:15 +05:30
workspace:
2017-08-22 22:39:33 +05:30
base: /srv/app
2016-11-08 18:13:15 +05:30
path: src
2017-08-22 22:39:33 +05:30
clone:
git:
image: plugins/git:1
depth: 50
tags: true
2016-11-08 18:13:15 +05:30
pipeline:
build:
image: webhippie/hugo:latest
2016-11-10 16:35:00 +05:30
pull: true
2016-11-08 18:13:15 +05:30
commands:
2016-12-12 19:07:06 +05:30
- make clean
2016-11-10 16:31:13 +05:30
- make build
2016-11-08 18:13:15 +05:30
docker:
2017-08-22 22:39:33 +05:30
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
2016-11-08 18:13:15 +05:30
repo: gitea/blog
tags: [ '${DRONE_BRANCH##release/v}' ]
2016-11-08 18:13:15 +05:30
when:
event: [ push ]
branch: [ release/* ]
2016-11-08 18:13:15 +05:30
docker:
2017-08-22 22:39:33 +05:30
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
2016-11-08 18:13:15 +05:30
repo: gitea/blog
tags: [ 'latest' ]
when:
event: [ push ]
branch: [ master ]
2016-11-08 18:13:15 +05:30
discord:
2017-08-22 22:39:33 +05:30
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 ]