Skip to content

Commit b2eedd5

Browse files
committed
jobs/release: sign OCI images
This uses the new `cosa sign --oci` switch to sign our OCI images using the official Fedora GPG keys. Part of coreos/fedora-coreos-tracker#1969. I opted for not gating this behind a knob. It's safe to do this even on streams that still use encapsulated commits (it's just files in S3). But the earlier we do it, the more overlap we have in which both signature types (OCI and OSTree) co-exist and that makes migration planning easier.
1 parent c55288f commit b2eedd5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

jobs/release.Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,16 @@ lock(resource: "release-${params.STREAM}", extra: locks) {
293293
rm tmp/push-secret-${metajsonname}
294294
""")
295295
}
296+
pipeutils.tryWithMessagingCredentials() {
297+
pipeutils.shwrapWithAWSBuildUploadCredentials("""
298+
cosa sign --build=${newBuildID} \
299+
robosignatory --s3-sigstore ${s3_stream_dir}/sigs/oci \
300+
--aws-config-file \${AWS_BUILD_UPLOAD_CONFIG} \
301+
--extra-fedmsg-keys stream=${params.STREAM} \
302+
--oci=${metajsonname} --gpgkeypath /etc/pki/rpm-gpg \
303+
--fedmsg-conf=\${FEDORA_MESSAGING_CONF}
304+
""")
305+
}
296306
}
297307
}]}
298308
}

0 commit comments

Comments
 (0)