#!/usr/bin/env sh

aws s3 sync s3://$S3_BUCKET_NAME /tmp/rpms
createrepo /tmp/rpms
aws s3 sync /tmp/rpms s3://$S3_BUCKET_NAME

#!/usr/bin/env sh

BUCKET_URL=s3://${S3_BUCKET_NAME}

aws s3 sync $BUCKET_URL /tmp/rpms

mkdir -p /tmp/rpms/repodata
mv /tmp/rpms/repodata /tmp/rpms/${S3_LOCAL_PATH}/

createrepo /tmp/rpms/${S3_LOCAL_PATH}

mv /tmp/rpms/${S3_LOCAL_PATH}/repodata /tmp/rpms/

aws s3 sync /tmp/rpms $BUCKET_URL

Support the repo name RPM structure
Support the repo name RPM structure
