Skip to content

Commit

Permalink
move stage local base to a setting
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 9, 2024
1 parent 272fba5 commit 8e99616
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions settings
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ TAR_PROJECTS=""
RPM_PACKAGES=()
PACKAGING_PR=${PACKAGING_PR:-true}
GPG_EXPIRE="1y"
STAGE_LOCAL_BASE="tmp/$PROJECT/$VERSION"

Check warning

Code scanning / shellcheck

YUM_HOSTS appears unused. Verify use (or export if used externally). Warning

YUM_HOSTS appears unused. Verify use (or export if used externally).

load_settings

Expand Down
6 changes: 2 additions & 4 deletions sign_stage_rpms
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ set -e
. settings

for os in $OSES; do
BASE="tmp/$PROJECT/$VERSION/$os"

for arch in $ARCHES; do
UNSIGNED_RPMS=$(./list_unsigned_rpms "$BASE/$arch" "$HALFGPGKEY")
UNSIGNED_RPMS=$(./list_unsigned_rpms "$STAGE_LOCAL_BASE/$os/$arch" "$HALFGPGKEY")

if [[ -n "$UNSIGNED_RPMS" ]]; then
echo "$UNSIGNED_RPMS" | xargs ./sign_rpms
createrepo_c --general-compress-type gz --database --update "$BASE/$arch"
createrepo_c --general-compress-type gz --database --update "$STAGE_LOCAL_BASE/$os/$arch"
fi
done
done
2 changes: 1 addition & 1 deletion upload_stage_rpms
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if [[ "${VERSION}" != "nightly" ]]; then
./verify_stage_sigs
fi

rsync --checksum --times --perms --recursive --links --verbose --partial --one-file-system --delete-after "tmp/$PROJECT/$VERSION/" "$USER@$HOST:rsync_cache/$PROJECT/$VERSION/"
rsync --checksum --times --perms --recursive --links --verbose --partial --one-file-system --delete-after "${STAGE_LOCAL_BASE}/" "$USER@$HOST:rsync_cache/$PROJECT/$VERSION/"
3 changes: 1 addition & 2 deletions verify_stage_sigs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ set -e
EXIT_CODE=0

for os in $OSES; do
BASE="tmp/$PROJECT/$VERSION/$os"

for arch in $ARCHES; do
UNSIGNED_RPMS=$(./list_unsigned_rpms "$BASE/$arch" "$HALFGPGKEY")
UNSIGNED_RPMS=$(./list_unsigned_rpms "$STAGE_LOCAL_BASE/$os/$arch" "$HALFGPGKEY")

if [[ -n "$UNSIGNED_RPMS" ]]; then
echo "$UNSIGNED_RPMS"
Expand Down

0 comments on commit 8e99616

Please sign in to comment.