Skip to content

Commit

Permalink
Add script to publish staging RPMs to production
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Sep 4, 2024
1 parent 2f8f822 commit a20269e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions publish_release_rpms
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -e

. settings

USER='rpmrepo'
HOST='repo-rpm01.osuosl.theforeman.org'

OVERWRITE=true
MERGE=false

for os in $OSES; do
if [[ "$PROJECT" == "pulpcore" || "$PROJECT" == "candlepin" ]];then
REPO_PATH="$PROJECT/$VERSION/$os"
else
REPO_PATH="foreman/$FOREMAN_VERSION/$PROJECT/$os"
fi

ssh "$USER@$HOST" "$REPO_PATH" "$REPO_PATH" "$OVERWRITE" "$MERGE"

Check notice

Code scanning / shellcheck

Note that, unescaped, this expands on the client side. Note

Note that, unescaped, this expands on the client side.
done

0 comments on commit a20269e

Please sign in to comment.