Unverified Commit a764c4b0 authored by Shawn Webb's avatar Shawn Webb
Browse files

Support publishing to remote mirror



Given that we are going to publish to an rsync master, HardenedBSD only
needs to support syncing to one given mirror. rsync-over-ssh is used
for this purpose.
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent ab3ffef9
......@@ -39,6 +39,10 @@ config_set_defaults() {
HBSD_NOCLEAN="-DNO_CLEAN"
HBSD_LOGDIR=/build/logs/13-current.amd64
# Set by config file, contains potentially sensitive data
HBSD_MIRROR_MASTER=""
HBSD_MIRROR_PUBDIR=""
return 0
}
......@@ -46,7 +50,7 @@ config_set_dynamic() {
HBSD_BUILDNUMBER=${HBSD_BUILDNUMBER:-$(build_number)}
HBSD_BUILD_LOG=${HBSD_BUILD_LOG:-${HBSD_LOGDIR}/${HBSD_BUILDNUMBER}.log}
HBSD_OBJRELDIR="$(make -C ${HBSD_SRC} -V .OBJDIR)/release"
HBSD_OBJRELDIR="$(make -C ${HBSD_SRC} TARGET=${HBSD_TARGET} TARGET_ARCH=${HBSD_TARGET_ARCH} -V .OBJDIR)/release"
return 0
}
......@@ -32,5 +32,7 @@ publish_release() {
kick_publisher_tires() {
# This function is for those mirrors that require push rather
# than pull. For now: nothing to see here; move along.
rsync -a ${HBSD_PUBDIR}/${HBSD_BUILDNUMBER}/ \
${HBSD_MIRROR_MASTER}:${HBSD_MIRROR_PUBDIR}/build-${HBSD_BUILDNUMBER}
return 0
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment