diff --git a/.drone.yml b/.drone.yml index a8d55e5687..b1ae27e171 100644 --- a/.drone.yml +++ b/.drone.yml @@ -109,15 +109,6 @@ steps: exclude: - pull_request - - name: tag-pre-condition - pull: always - image: alpine/git - commands: - - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA} - when: - event: - - tag - - name: build pull: always image: golang:1.13 @@ -159,6 +150,17 @@ steps: - push - pull_request + - name: tag-pre-condition + pull: always + image: alpine/git + commands: + - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA} + depends_on: + - build + when: + event: + - tag + - name: tag-test pull: always image: golang:1.13