Changes for latest DroneCI
This commit is contained in:
Родитель
0a31ea51b9
Коммит
70aad0f583
19
.drone.yml
19
.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
|
||||
|
@ -11,8 +18,9 @@ pipeline:
|
|||
- make build
|
||||
|
||||
docker:
|
||||
image: plugins/docker
|
||||
image: plugins/docker:17.05
|
||||
pull: true
|
||||
secrets: [ docker_username, docker_password ]
|
||||
repo: gitea/docs
|
||||
tags: [ '${DRONE_BRANCH##release/v}' ]
|
||||
when:
|
||||
|
@ -20,8 +28,9 @@ pipeline:
|
|||
branch: [ release/* ]
|
||||
|
||||
docker:
|
||||
image: plugins/docker
|
||||
image: plugins/docker:17.05
|
||||
pull: true
|
||||
secrets: [ docker_username, docker_password ]
|
||||
repo: gitea/docs
|
||||
tags: [ 'latest' ]
|
||||
when:
|
||||
|
@ -29,9 +38,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 ]
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogd2ViaGlwcGllL2h1Z286bGF0ZXN0CiAgICBwdWxsOiB0cnVlCiAgICBjb21tYW5kczoKICAgICAgLSBtYWtlIHRyYW5zLWNvcHkKICAgICAgLSBtYWtlIGNsZWFuCiAgICAgIC0gbWFrZSBidWlsZAoKICBkb2NrZXI6CiAgICBpbWFnZTogcGx1Z2lucy9kb2NrZXIKICAgIHB1bGw6IHRydWUKICAgIHJlcG86IGdpdGVhL2RvY3MKICAgIHRhZ3M6IFsgJyR7RFJPTkVfQlJBTkNIIyNyZWxlYXNlL3Z9JyBdCiAgICB3aGVuOgogICAgICBldmVudDogWyBwdXNoIF0KICAgICAgYnJhbmNoOiBbIHJlbGVhc2UvKiBdCgogIGRvY2tlcjoKICAgIGltYWdlOiBwbHVnaW5zL2RvY2tlcgogICAgcHVsbDogdHJ1ZQogICAgcmVwbzogZ2l0ZWEvZG9jcwogICAgdGFnczogWyAnbGF0ZXN0JyBdCiAgICB3aGVuOgogICAgICBldmVudDogWyBwdXNoIF0KICAgICAgYnJhbmNoOiBbIG1hc3RlciBdCgogIGRpc2NvcmQ6CiAgICBpbWFnZTogYXBwbGVib3kvZHJvbmUtZGlzY29yZAogICAgd2ViaG9va19pZDogJHtXRUJIT09LX0lEfQogICAgd2ViaG9va190b2tlbjogJHtXRUJIT09LX1RPS0VOfQogICAgd2hlbjoKICAgICAgZXZlbnQ6IFsgcHVzaCwgdGFnLCBwdWxsX3JlcXVlc3QgXQogICAgICBzdGF0dXM6IFsgY2hhbmdlZCwgZmFpbHVyZSBdCg.YT-mG1FPkF0I4MNILeUdsE2tPWA1m-TAlmKPfgAn83I
|
Загрузка…
Ссылка в новой задаче