Skip to content

Commit

Permalink
Fetch tags on tag event
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Abdolirad <[email protected]>
  • Loading branch information
atkrad committed Mar 1, 2021
1 parent a00f0b0 commit 910b5ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ def build_pipeline(os, arch):
"type": "docker",
"name": "build-%s-%s" % (os, arch),
"steps": [
{
"name": "fetch",
"image": "alpine/git",
"commands": [
"git fetch --tags"
],
"when": {
"event": [
"tag"
]
}
},
{
"name": "build",
"image": "golang:1.13-buster",
Expand Down

0 comments on commit 910b5ce

Please sign in to comment.