Changes for latest DroneCI
This commit is contained in:
Родитель
4311bbd1a3
Коммит
5e2c6eb26d
21
.drone.yml
21
.drone.yml
|
@ -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 ]
|
||||
|
|
Загрузка…
Ссылка в новой задаче