From a96318d3033c626bc81df4fee1907b963a39ff0c Mon Sep 17 00:00:00 2001 From: konrad Date: Thu, 2 May 2019 23:25:30 +0200 Subject: [PATCH 1/4] Added tags pull step to drone config to show correct version hashes in builds --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index b46033e49c624..494703d64de28 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,11 @@ clone: tags: true pipeline: + fetch-tags: + image: docker:git + commands: + - git fetch --tags + download_translations: image: jonasfranz/crowdin pull: true @@ -69,6 +74,7 @@ pipeline: environment: TAGS: bindata sqlite sqlite_unlock_notify commands: + - git tag # To see if the tags were successfully pulled - make clean - make generate - make vet From decce45f2c7c235e58854f7a60d3d7cc8b868dea Mon Sep 17 00:00:00 2001 From: konrad Date: Thu, 2 May 2019 23:31:01 +0200 Subject: [PATCH 2/4] Removed debug step --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 494703d64de28..9ab77814eb3eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -74,7 +74,6 @@ pipeline: environment: TAGS: bindata sqlite sqlite_unlock_notify commands: - - git tag # To see if the tags were successfully pulled - make clean - make generate - make vet From 44d2062eb076ce5b2f0d4729e4140f2aedc4afa0 Mon Sep 17 00:00:00 2001 From: konrad Date: Thu, 2 May 2019 23:51:45 +0200 Subject: [PATCH 3/4] Force git to get tags --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9ab77814eb3eb..0e8e50b42d851 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ pipeline: fetch-tags: image: docker:git commands: - - git fetch --tags + - git fetch --tags --force download_translations: image: jonasfranz/crowdin From 6fbf87d2dcb4c06832486c728144898a12eb5440 Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 3 May 2019 00:07:21 +0200 Subject: [PATCH 4/4] Remove clone depth --- .drone.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0e8e50b42d851..4a88427eeed95 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,12 +2,6 @@ workspace: base: /go path: src/code.gitea.io/gitea -clone: - git: - image: plugins/git:next - depth: 50 - tags: true - pipeline: fetch-tags: image: docker:git