fix(ci): add progress markers to publish script for debugging
All checks were successful
poll-upstream / check (push) Successful in 1s
All checks were successful
poll-upstream / check (push) Successful in 1s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,16 +26,20 @@ for rpm in "${RPM_DIR}"/*.rpm; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "setting up ssh..."
|
||||||
install --directory --mode 700 ~/.ssh
|
install --directory --mode 700 ~/.ssh
|
||||||
echo "${RSYNC_SSH_KEY}" | install --mode 600 /dev/stdin ~/.ssh/id_ed25519
|
echo "${RSYNC_SSH_KEY}" | install --mode 600 /dev/stdin ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -H oolon.kosherinata.internal > ~/.ssh/known_hosts 2>/dev/null
|
ssh-keyscan -H oolon.kosherinata.internal > ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
|
echo "rsyncing to ${RSYNC_TARGET}:${REMOTE_DIR}/..."
|
||||||
rsync \
|
rsync \
|
||||||
--archive \
|
--archive \
|
||||||
--verbose \
|
--verbose \
|
||||||
--chmod D755,F644 \
|
--chmod D755,F644 \
|
||||||
"${RPM_DIR}/"*.rpm \
|
"${RPM_DIR}/"*.rpm \
|
||||||
"${RSYNC_TARGET}:${REMOTE_DIR}/"
|
"${RSYNC_TARGET}:${REMOTE_DIR}/"
|
||||||
|
|
||||||
|
echo "updating repo metadata..."
|
||||||
ssh "${RSYNC_TARGET}" "cd ${REMOTE_DIR} && createrepo_c --update ."
|
ssh "${RSYNC_TARGET}" "cd ${REMOTE_DIR} && createrepo_c --update ."
|
||||||
|
|
||||||
echo "Published $(ls ${RPM_DIR}/*.rpm | wc -l) RPMs"
|
echo "Published $(ls ${RPM_DIR}/*.rpm | wc -l) RPMs"
|
||||||
|
|||||||
Reference in New Issue
Block a user