Skip to content

Commit

Permalink
fix pipeline depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan authored and micbar committed Jun 13, 2024
1 parent babf442 commit 7e5f278
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -1287,19 +1287,22 @@ def dockerReleases(ctx):
break

for repo in docker_repos:
repo_pipelines = []
if ctx.build.event == "tag":
build_type = "rolling" if "rolling" in repo else "production"

for arch in config["dockerReleases"]["architectures"]:
pipelines.append(dockerRelease(ctx, arch, repo, build_type))
repo_pipelines.append(dockerRelease(ctx, arch, repo, build_type))

manifest = releaseDockerManifest(repo, build_type)
manifest["depends_on"] = getPipelineNames(pipelines)
pipelines.append(manifest)
manifest["depends_on"] = getPipelineNames(repo_pipelines)
repo_pipelines.append(manifest)

readme = releaseDockerReadme(ctx, repo, build_type)
readme["depends_on"] = getPipelineNames(pipelines)
pipelines.append(readme)
readme["depends_on"] = getPipelineNames(repo_pipelines)
repo_pipelines.append(readme)

pipelines.extend(repo_pipelines)

return pipelines

Expand Down

0 comments on commit 7e5f278

Please sign in to comment.