mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 20:29:54 -06:00
ci: do not create latest tag on master
This commit is contained in:
@@ -1294,7 +1294,7 @@ def dockerReleases(ctx):
|
||||
for arch in config["dockerReleases"]["architectures"]:
|
||||
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)
|
||||
repo_pipelines.append(manifest)
|
||||
|
||||
@@ -1686,7 +1686,7 @@ def licenseCheck(ctx):
|
||||
"volumes": [pipelineVolumeGo],
|
||||
}]
|
||||
|
||||
def releaseDockerManifest(repo, build_type):
|
||||
def releaseDockerManifest(ctx, repo, build_type):
|
||||
spec = "manifest.tmpl"
|
||||
spec_latest = "manifest-latest.tmpl"
|
||||
if "rolling" not in repo:
|
||||
@@ -1713,7 +1713,7 @@ def releaseDockerManifest(repo, build_type):
|
||||
"from_secret": "docker_password",
|
||||
},
|
||||
"spec": "ocis/docker/%s" % spec,
|
||||
"auto_tag": True,
|
||||
"auto_tag": True if ctx.build.event == "tag" else False,
|
||||
"ignore_missing": True,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user