From 7e652a09525eb1cb4374b35e9b2ab406231aa760 Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Wed, 4 Sep 2024 11:36:34 -0400 Subject: [PATCH] Add script to publish staging RPMs to production --- publish_release_rpms | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 publish_release_rpms diff --git a/publish_release_rpms b/publish_release_rpms new file mode 100755 index 0000000..2e9255b --- /dev/null +++ b/publish_release_rpms @@ -0,0 +1,19 @@ +#!/bin/bash -e + +. settings + +USER='rpmrepo' +HOST='rpm.theforeman.org' + +OVERWRITE=true +MERGE=false + +for os in $OSES; do + if [[ "$PROJECT" == "pulpcore" || "$PROJECT" == "candlepin" ]];then + PATH="$PROJECT/$VERSION/$os" + else + PATH="foreman/$VERSION/$PROJECT/$os" + fi + + ssh "$USER@$HOST" "$PATH" "$PATH" "$OVERWRITE" "$MERGE" +done