Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure things are properly signed before uploading to stage #425

Merged
merged 5 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions upload_stage_rpms
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
USER='yumrepostage'
HOST='web01.osuosl.theforeman.org'

if [[ "${VERSION}" != "nightly" ]]; then
evgeni marked this conversation as resolved.
Show resolved Hide resolved
./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/"
28 changes: 28 additions & 0 deletions verify_stage_sigs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

set -e

. settings

ARCHES="x86_64 source"
ekohl marked this conversation as resolved.
Show resolved Hide resolved

EXIT_CODE=0

for os in $OSES; do
BASE="tmp/$PROJECT/$VERSION/$os"
ekohl marked this conversation as resolved.
Show resolved Hide resolved

evgeni marked this conversation as resolved.
Show resolved Hide resolved
for arch in $ARCHES; do
UNSIGNED_RPMS=$(./list_unsigned_rpms "$BASE/$arch" "$HALFGPGKEY")

if [[ -n "$UNSIGNED_RPMS" ]]; then
echo "$UNSIGNED_RPMS"
EXIT_CODE=1
fi
done
done

if [[ "${EXIT_CODE}" != "0" ]]; then
echo "RPMs not signed with ${HALFGPGKEY} found, aborting"
fi

exit ${EXIT_CODE}
Loading