-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to publish staging RPMs to production
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |