Skip to content

Commit 69338e0

Browse files
committed
exclude known tags
1 parent 43776e3 commit 69338e0

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.drone.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ steps:
88
commands:
99
# Check if the Go code is properly formatted and run the linter
1010
- task check
11-
# Ensure protobufs compile
11+
# Ensure protobufs compile without errors
1212
- task protoc
1313

1414
- name: build
@@ -28,10 +28,10 @@ steps:
2828
- pip install -r test/requirements.txt
2929
- task test-integration
3030

31-
# Contrary to other CI platforms, uploading reports to Codecov requires Drone to provide a token.
32-
# To avoid exposing the Codecov token to external PRs, we only upload coverage when we merge on
33-
# `master`.
3431
- name: coverage
32+
# Contrary to other CI platforms, uploading reports to Codecov requires Drone to provide a token.
33+
# To avoid exposing the Codecov token to external PRs, we only upload coverage when we merge on
34+
# `master`.
3535
image: arduino/arduino-cli:drone-1.0
3636
environment:
3737
CODECOV_TOKEN:
@@ -51,6 +51,7 @@ name: release
5151

5252
steps:
5353
- name: fetch
54+
# extra step needed to fetch tags after cloning
5455
image: docker:git
5556
commands:
5657
- git fetch --tags
@@ -65,9 +66,16 @@ steps:
6566

6667
trigger:
6768
event:
69+
# releases are triggered by tags only
6870
- tag
6971
status:
72+
# skip the release if the previous build failed
7073
- success
74+
ref:
75+
exclude:
76+
# exclude the tags used to build Docker images for drone
77+
- refs/tags/builder-*
78+
- refs/tags/drone-*
7179

7280
depends_on:
7381
- test

0 commit comments

Comments
 (0)