Skip to content

Commit

Permalink
ci: do not create latest tag on master
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed Jun 18, 2024
1 parent 1b23910 commit ee5c077
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand All @@ -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,
},
},
Expand Down

0 comments on commit ee5c077

Please sign in to comment.