public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Oleg Obleukhov <leoleovich@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/oscillatord] f45: rebuild: copy the SSH key into the container correctly
Date: Fri, 13 Nov 2026 12:55:32 GMT [thread overview]
Message-ID: <179457453211.1.7639015009228389927.rpms-oscillatord-9d46d8945c94@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/oscillatord
Branch : f45
Commit : 9d46d8945c946294aabe62388c17a305d08db611
Author : Oleg Obleukhov <leoleovich@fedoraproject.org>
Date : 2026-11-13T12:50:42+00:00
Stats : +5/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/oscillatord/c/9d46d8945c946294aabe62388c17a305d08db611?branch=f45
Log:
rebuild: copy the SSH key into the container correctly
One of the packaging tools creates /root/.ssh, so cp -a put the keys in /root/.ssh/.ssh-host and ssh-add found none. Also start every run from origin/rawhide, so a stopped run cannot block the next one.
[skip changelog]
---
diff --git a/rebuild/release-inner.sh b/rebuild/release-inner.sh
index 3f22e85..a0e8259 100755
--- a/rebuild/release-inner.sh
+++ b/rebuild/release-inner.sh
@@ -47,7 +47,8 @@ login() {
# ~/.ssh is mounted read-only and may be owned by another uid; ssh needs a private copy.
if [ -d /root/.ssh-host ]; then
- cp -a /root/.ssh-host /root/.ssh
+ mkdir -p /root/.ssh
+ cp -a /root/.ssh-host/. /root/.ssh/
chown -R root:root /root/.ssh
chmod 700 /root/.ssh
find /root/.ssh -type f -exec chmod 600 {} +
@@ -58,7 +59,7 @@ ssh_login() {
eval "$(ssh-agent -s)" >/dev/null
agent_pid=$SSH_AGENT_PID
echo "SSH key for dist-git pushes:"
- ssh-add -q
+ ssh-add -q || die "could not load an SSH key from ~/.ssh"
}
declare -A job=()
@@ -82,11 +83,9 @@ for p in "${pkgs[@]}"; do
[ -d "$d/.git" ] || git clone -q "https://src.fedoraproject.org/rpms/$p.git" "$d"
git -C "$d" remote set-url --push origin "ssh://$FAS_USER@pkgs.fedoraproject.org/rpms/$p.git"
git -C "$d" fetch -q origin
- # The clone belongs to this tool: drop what an interrupted run left uncommitted, keep unpushed commits.
- git -C "$d" checkout -q -f rawhide
+ # The clone belongs to this tool; whatever a stopped run left unpushed is redone below.
+ git -C "$d" checkout -q -f -B rawhide origin/rawhide
git -C "$d" clean -fdq
- git -C "$d" merge -q --ff-only origin/rawhide 2>/dev/null \
- || die "$d has commits that diverge from origin/rawhide; push or delete them first"
done
if [ -z "$branches" ]; then
reply other threads:[~2026-11-13 12:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179457453211.1.7639015009228389927.rpms-oscillatord-9d46d8945c94@fedoraproject.org \
--to=leoleovich@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox