public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/oscillatord] epel10.3: rebuild: copy the SSH key into the container correctly
@ 2026-11-13 12:55 Oleg Obleukhov
0 siblings, 0 replies; only message in thread
From: Oleg Obleukhov @ 2026-11-13 12:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/oscillatord
Branch : epel10.3
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=epel10.3
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 12:55 [rpms/oscillatord] epel10.3: rebuild: copy the SSH key into the container correctly Oleg Obleukhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox