File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments