ci: do not create latest tag on master
This commit is contained in:
+3
-3
@@ -1294,7 +1294,7 @@ def dockerReleases(ctx):
|
|||||||
for arch in config["dockerReleases"]["architectures"]:
|
for arch in config["dockerReleases"]["architectures"]:
|
||||||
repo_pipelines.append(dockerRelease(ctx, arch, repo, build_type))
|
repo_pipelines.append(dockerRelease(ctx, arch, repo, build_type))
|
||||||
|
|
||||||
manifest = releaseDockerManifest(repo, build_type)
|
manifest = releaseDockerManifest(ctx, repo, build_type)
|
||||||
manifest["depends_on"] = getPipelineNames(repo_pipelines)
|
manifest["depends_on"] = getPipelineNames(repo_pipelines)
|
||||||
repo_pipelines.append(manifest)
|
repo_pipelines.append(manifest)
|
||||||
|
|
||||||
@@ -1686,7 +1686,7 @@ def licenseCheck(ctx):
|
|||||||
"volumes": [pipelineVolumeGo],
|
"volumes": [pipelineVolumeGo],
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def releaseDockerManifest(repo, build_type):
|
def releaseDockerManifest(ctx, repo, build_type):
|
||||||
spec = "manifest.tmpl"
|
spec = "manifest.tmpl"
|
||||||
spec_latest = "manifest-latest.tmpl"
|
spec_latest = "manifest-latest.tmpl"
|
||||||
if "rolling" not in repo:
|
if "rolling" not in repo:
|
||||||
@@ -1713,7 +1713,7 @@ def releaseDockerManifest(repo, build_type):
|
|||||||
"from_secret": "docker_password",
|
"from_secret": "docker_password",
|
||||||
},
|
},
|
||||||
"spec": "ocis/docker/%s" % spec,
|
"spec": "ocis/docker/%s" % spec,
|
||||||
"auto_tag": True,
|
"auto_tag": True if ctx.build.event == "tag" else False,
|
||||||
"ignore_missing": True,
|
"ignore_missing": True,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user