Skip to content

Commit 476dfc1

Browse files
committed
cmd-sign: no-op for now when asked to sign ostree on OCI imported builds
This is known to not work but let's just no-op for now here instead of having to add conditional logic in the pipeline.
1 parent d681d54 commit 476dfc1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cmd-sign

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ def cmd_robosignatory(args):
111111
def robosign_ostree(args, s3, build, gpgkey):
112112
builds = Builds()
113113
builddir = builds.get_build_dir(args.build, args.arch)
114+
115+
if build['coreos-assembler.oci-imported']:
116+
# this is a known gap currently; we just no-op for
117+
# now until we cut over to Konflux and stop using this code; see
118+
# https://github.com/coreos/fedora-coreos-tracker/issues/1986
119+
print("OSTree commit signing is not supported on imported OCI builds; ignoring...")
120+
return
121+
114122
checksum = build['ostree-commit']
115123

116124
# Copy commit object to a temporary location. A preferred approach here is

0 commit comments

Comments
 (0)