Skip to content

Commit 92b993c

Browse files
Fetch refs for successful testing for tag (#7388)
1 parent 33b1027 commit 92b993c

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
@@ -114,6 +114,17 @@ steps:
114114
- push
115115
- pull_request
116116

117+
- name: tag-pre-condition
118+
pull: always
119+
image: alpine/git
120+
commands:
121+
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
122+
depends_on:
123+
- build
124+
when:
125+
event:
126+
- tag
127+
117128
- name: tag-test
118129
pull: always
119130
image: golang:1.12
@@ -122,7 +133,7 @@ steps:
122133
environment:
123134
TAGS: bindata
124135
depends_on:
125-
- build
136+
- tag-pre-condition
126137
when:
127138
event:
128139
- tag

0 commit comments

Comments
 (0)