Skip to content

Commit a27d5d2

Browse files
kolaentezeripath
authored andcommitted
Drone: Do full branch clone and get tags for correct version hashes (#6836)
Although #591 attempted to make version hashes be preceded with tag names on our branch builds, it would fail again silently at 50 commits because we were not cloning the full branch. Drone's new plugin will do a single branch clone by default meaning that depth is no longer necessary.
1 parent 26c7c97 commit a27d5d2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.drone.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ workspace:
22
base: /go
33
path: src/code.gitea.io/gitea
44

5-
clone:
6-
git:
7-
image: plugins/git:next
8-
depth: 50
9-
tags: true
10-
115
pipeline:
6+
fetch-tags:
7+
image: docker:git
8+
commands:
9+
- git fetch --tags --force
10+
1211
download_translations:
1312
image: jonasfranz/crowdin
1413
pull: true

0 commit comments

Comments
 (0)