Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kokoro/config/build/aarch64_linux/release.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config build = common.build {
params {
keystore_keys = super.keystore_keys + [
{ keystore_config_id = 71565, keyname = 'rpm-signing-key' },
{ keystore_config_id = 78657, keyname = 'el10-v1-rpm-signing-key' },
]
environment {
SKIP_SIGNING = null
Expand Down
10 changes: 10 additions & 0 deletions kokoro/config/build/presubmit/rockylinux10_aarch64.gcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import '../common.gcl' as common

config build = common.build {
params {
environment {
DISTRO = 'rockylinux10'
PKGFORMAT = 'rpm'
}
}
}
10 changes: 10 additions & 0 deletions kokoro/config/build/presubmit/rockylinux10_x86_64.gcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import '../common.gcl' as common

config build = common.build {
params {
environment {
DISTRO = 'rockylinux10'
PKGFORMAT = 'rpm'
}
}
}
1 change: 1 addition & 0 deletions kokoro/config/build/x86_64_linux/release.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config build = common.build {
params {
keystore_keys = super.keystore_keys + [
{ keystore_config_id = 71565, keyname = 'rpm-signing-key' },
{ keystore_config_id = 78657, keyname = 'el10-v1-rpm-signing-key' },
]
environment {
SKIP_SIGNING = null
Expand Down
13 changes: 12 additions & 1 deletion kokoro/scripts/build/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,18 @@ docker buildx build . \

SIGNING_DIR="$(pwd)/kokoro/scripts/build/signing"
if [[ "${PKGFORMAT}" == "rpm" && "${SKIP_SIGNING}" != "true" ]]; then
RPM_SIGNING_KEY="${KOKORO_KEYSTORE_DIR}/71565_rpm-signing-key"
RPM_STANDARD_SIGNING_KEY="${KOKORO_KEYSTORE_DIR}/71565_rpm-signing-key"
RPM_EL10_SIGNING_KEY="${KOKORO_KEYSTORE_DIR}/78657_el10-v1-rpm-signing-key"

# Google packages are to be signed using a specific key per major version
# of RHEL starting with RHEL 10, we detect whether to use the EL10 signing
# key or the standard one here. All rpm packages for distros other than
# EL10 stick to the standard key.
RPM_SIGNING_KEY=${RPM_ETERNAL_SIGNING_KEY}
if [[ "${DISTRO}" == "rockylinux10" ]]; then
RPM_SIGNING_KEY=${RPM_EL10_SIGNING_KEY}
fi

cp "${RPM_SIGNING_KEY}" "${SIGNING_DIR}/signing-key"
fi

Expand Down