Skip to content

Commit ca4a84a

Browse files
appleboybkcsoft
authored andcommitted
chore: simplify docker build process. (#2827)
* chore: simplify docker build process. * chore: update docker plugin.
1 parent ff64f18 commit ca4a84a

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.drone.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,7 @@ pipeline:
238238
branch: [ master ]
239239

240240
docker:
241-
image: plugins/docker:17.05
242-
pull: true
243-
secrets: [ docker_username, docker_password ]
244-
repo: gitea/gitea
245-
tags: [ '${DRONE_TAG##v}' ]
246-
when:
247-
event: [ tag ]
248-
249-
docker:
250-
image: plugins/docker:17.05
241+
image: plugins/docker:17.12
251242
pull: true
252243
secrets: [ docker_username, docker_password ]
253244
repo: gitea/gitea
@@ -257,14 +248,12 @@ pipeline:
257248
branch: [ release/* ]
258249

259250
docker:
260-
image: plugins/docker:17.05
251+
image: plugins/docker:17.12
261252
pull: true
262-
secrets: [ docker_username, docker_password ]
263253
repo: gitea/gitea
264-
tags: [ 'latest' ]
254+
default_tags: true
265255
when:
266-
event: [ push ]
267-
branch: [ master ]
256+
event: [ push, tag ]
268257

269258
release:
270259
image: plugins/s3:1

0 commit comments

Comments
 (0)