Skip to content

Commit fc9a62a

Browse files
committed
add comments to nested ifs
1 parent b595461 commit fc9a62a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.woodpecker.star

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,9 +1611,11 @@ def dockerReleases(ctx):
16111611
docker_repos = []
16121612
build_type = ""
16131613

1614+
# only make realeases on tag events
16141615
if ctx.build.event == "tag":
16151616
tag = ctx.build.ref.replace("refs/tags/v", "").lower()
16161617

1618+
# iterate over production tags to see if this is a production release
16171619
is_production = False
16181620
for prod_tag in config["dockerReleases"]["production"]["tags"]:
16191621
if tag.startswith(prod_tag):
@@ -1628,6 +1630,7 @@ def dockerReleases(ctx):
16281630
docker_repos.append(config["dockerReleases"]["rolling"]["repo"])
16291631
build_type = config["dockerReleases"]["rolling"]["build_type"]
16301632

1633+
# on non tag events, do daily build
16311634
else:
16321635
docker_repos.append(config["dockerReleases"]["daily"]["repo"])
16331636
build_type = config["dockerReleases"]["daily"]["build_type"]

0 commit comments

Comments
 (0)