Skip to content

Commit d7fccb2

Browse files
techknowlogickzeripath
authored andcommitted
Fetch refs for successful testing for tag (#7388)
* Fetch refs for successful testing for tag Fix #7382 * Update .drone.yml
1 parent 3c3f749 commit d7fccb2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.drone.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ steps:
116116
- push
117117
- pull_request
118118

119+
- name: tag-pre-condition
120+
pull: always
121+
image: alpine/git
122+
commands:
123+
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
124+
depends_on:
125+
- build
126+
when:
127+
event:
128+
- tag
129+
119130
- name: tag-test
120131
pull: always
121132
image: golang:1.12
@@ -124,7 +135,7 @@ steps:
124135
environment:
125136
TAGS: bindata
126137
depends_on:
127-
- build
138+
- tag-pre-condition
128139
when:
129140
event:
130141
- tag

0 commit comments

Comments
 (0)