mirror of https://gitea.com/gitea/website.git
38 lines
700 B
YAML
38 lines
700 B
YAML
workspace:
|
|
path: src
|
|
|
|
pipeline:
|
|
build:
|
|
image: webhippie/hugo:latest
|
|
pull: true
|
|
commands:
|
|
- make trans-copy
|
|
- make clean
|
|
- make build
|
|
|
|
docker:
|
|
image: plugins/docker
|
|
pull: true
|
|
repo: gitea/website
|
|
tags: [ '${DRONE_BRANCH##release/v}' ]
|
|
when:
|
|
event: [ push ]
|
|
branch: [ release/* ]
|
|
|
|
docker:
|
|
image: plugins/docker
|
|
pull: true
|
|
repo: gitea/website
|
|
tags: [ 'latest' ]
|
|
when:
|
|
event: [ push ]
|
|
branch: [ master ]
|
|
|
|
discord:
|
|
image: appleboy/drone-discord
|
|
webhook_id: ${WEBHOOK_ID}
|
|
webhook_token: ${WEBHOOK_TOKEN}
|
|
when:
|
|
event: [ push, tag, pull_request ]
|
|
status: [ changed, failure ]
|