scripts/packagesyncextras: Deploy s3indexbuilder.py and fix debug sync part
authorDevrim Gunduz <devrim@gunduz.org>
Wed, 4 Jun 2025 20:39:58 +0000 (15:39 -0500)
committerDevrim Gunduz <devrim@gunduz.org>
Wed, 4 Jun 2025 20:39:58 +0000 (15:39 -0500)
scripts/buildserver/packagesyncextras.sh

index c022cdf371361e7d5c7e6ef3abc5883ebead233b..0f19543705bfc675e0221a62d52edaa23d8739c8 100755 (executable)
@@ -51,10 +51,12 @@ rsync -ave ssh --delete $EXTRAS_SRPM_DIR/ yumupload@yum.postgresql.org:yum/yum/s
 
 # Sync SRPMs to S3 bucket:
 aws s3 sync $EXTRAS_SRPM_DIR s3://dnf-srpms.postgresql.org20250313103537584600000001/srpms/common/pgdg-$osshort-extras/$osdistro/$os-$osarch --exclude "*.html"
+~/bin/s3indexbuilder.py dnf-srpms.postgresql.org20250313103537584600000001 srpms/common/pgdg-$osshort-extras/$osdistro/$os-$osarch --cfdistribution $CF_SRPM_DISTRO_ID
 aws cloudfront create-invalidation --distribution-id $CF_SRPM_DISTRO_ID --path /srpms/common/pgdg-$osshort-extras/$osdistro/$os-$osarch/repodata/*
 
 # Sync debug* RPMs to S3 bucket:
-aws s3 sync $EXTRAS_DEBUG_RPM_DIR s3://dnf-debuginfo.postgresql.org20250312201116649700000001/debug/$packageSyncVersion/$osdistro/$os-$osarch/ --exclude "*.html"
-aws cloudfront create-invalidation --distribution-id $CF_DEBUG_DISTRO_ID --path /debug/$packageSyncVersion/$osdistro/$os-$osarch/repodata/*
+aws s3 sync $EXTRAS_DEBUG_RPM_DIR s3://dnf-debuginfo.postgresql.org20250312201116649700000001/debug/common/pgdg-$osshort-extras/$osdistro/$os-$osarch/ --exclude "*.html"
+~/bin/s3indexbuilder.py dnf-debuginfo.postgresql.org20250312201116649700000001 debug/common/pgdg-$osshort-extras/$osdistro/$os-$osarch --cfdistribution $CF_DEBUG_DISTRO_ID
+aws cloudfront create-invalidation --distribution-id $CF_DEBUG_DISTRO_ID --path /debug/common/pgdg-$osshort-extras/$osdistro/$os-$osarch/repodata/*
 
 exit 0