forked from gitea/website
39 lines
665 B
YAML
39 lines
665 B
YAML
workspace:
|
|
base: /srv/app
|
|
path: src
|
|
|
|
branches:
|
|
- master
|
|
|
|
clone:
|
|
git:
|
|
image: plugins/git:1
|
|
depth: 50
|
|
tags: true
|
|
|
|
pipeline:
|
|
build:
|
|
image: webhippie/hugo:latest
|
|
pull: true
|
|
commands:
|
|
- make trans-copy
|
|
- make clean
|
|
- make build
|
|
|
|
publish:
|
|
image: lucap/drone-netlify:latest
|
|
pull: true
|
|
secrets: [ netlify_token ]
|
|
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
|
|
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 ]
|