Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 037b948

Browse files
committedMar 11, 2025··
cmd/push-container-manifest: use additional-images rather than overwrite
in coreos/fedora-coreos-pipeline#1091 we started publishing container images in multiples repos. However the build.json was not reflecting that, only storing the last pushed image data, overwriting it with each arch. See #4038 See coreos/fedora-coreos-pipeline#1099
1 parent 8c041a1 commit 037b948

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed
 

‎src/cmd-push-container-manifest

+9-5
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,15 @@ def main():
122122
arch = manifest['platform']['architecture']
123123
if arch in map_arch:
124124
arch = map_arch[arch]
125-
buildmetas[arch][args.metajsonname] = {
126-
'image': args.repo,
127-
'digest': manifest['digest'],
128-
'tags': args.tags
129-
}
125+
image = {
126+
'image': args.repo,
127+
'digest': manifest['digest'],
128+
'tags': args.tags
129+
}
130+
if buildmetas[arch].get(args.metajsonname, 'null') != 'null':
131+
buildmetas[arch][args.metajsonname].additional_images += [image]
132+
else:
133+
buildmetas[arch][args.metajsonname] = image
130134
buildmetas[arch].write(artifact_name=args.metajsonname)
131135

132136

0 commit comments

Comments
 (0)
Please sign in to comment.