Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Commit c844513

Browse files
authored
Merge pull request #146 from go-gitea/drone-upgrade
Changes for latest DroneCI
2 parents 0a31ea5 + 70aad0f commit c844513

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.drone.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
workspace:
2+
base: /srv/app
23
path: src
34

5+
clone:
6+
git:
7+
image: plugins/git:1
8+
depth: 50
9+
tags: true
10+
411
pipeline:
512
build:
613
image: webhippie/hugo:latest
@@ -11,27 +18,29 @@ pipeline:
1118
- make build
1219

1320
docker:
14-
image: plugins/docker
21+
image: plugins/docker:17.05
1522
pull: true
23+
secrets: [ docker_username, docker_password ]
1624
repo: gitea/docs
1725
tags: [ '${DRONE_BRANCH##release/v}' ]
1826
when:
1927
event: [ push ]
2028
branch: [ release/* ]
2129

2230
docker:
23-
image: plugins/docker
31+
image: plugins/docker:17.05
2432
pull: true
33+
secrets: [ docker_username, docker_password ]
2534
repo: gitea/docs
2635
tags: [ 'latest' ]
2736
when:
2837
event: [ push ]
2938
branch: [ master ]
3039

3140
discord:
32-
image: appleboy/drone-discord
33-
webhook_id: ${WEBHOOK_ID}
34-
webhook_token: ${WEBHOOK_TOKEN}
41+
image: appleboy/drone-discord:1.0.0
42+
pull: true
43+
secrets: [ discord_webhook_id, discord_webhook_token ]
3544
when:
3645
event: [ push, tag, pull_request ]
3746
status: [ changed, failure ]

.drone.yml.sig

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)