diff options
author | Arnstein Ressem <aressem@yahooinc.com> | 2023-11-08 11:01:06 +0100 |
---|---|---|
committer | Arnstein Ressem <aressem@yahooinc.com> | 2023-11-08 11:01:06 +0100 |
commit | 7cae1199b2fbaf5f42184611756ba45a36c48dc0 (patch) | |
tree | 654a10340976020b92b6a9b59422e39f0dbc4db4 /screwdriver | |
parent | 6296ebad00191a453e7afb5ec9726e6203f8eaff (diff) |
Renamed repo vespa/vespa -> vespa/open-source-rpms
Diffstat (limited to 'screwdriver')
-rwxr-xr-x | screwdriver/publish-unpublished-rpms-to-archive.sh | 10 | ||||
-rwxr-xr-x | screwdriver/upload-rpm-to-cloudsmith.sh | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/screwdriver/publish-unpublished-rpms-to-archive.sh b/screwdriver/publish-unpublished-rpms-to-archive.sh index 1e4b74b6f78..9804fc5eeec 100755 --- a/screwdriver/publish-unpublished-rpms-to-archive.sh +++ b/screwdriver/publish-unpublished-rpms-to-archive.sh @@ -24,10 +24,10 @@ dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/ve sed -i "s,\$basearch,$RPMARCH,g" /etc/yum.repos.d/group_vespa-vespa-epel-8.repo # Cloudsmith repo -rpm --import 'https://dl.cloudsmith.io/public/vespa/vespa/gpg.0F3DA3C70D35DA7B.key' -curl -1sLf 'https://dl.cloudsmith.io/public/vespa/vespa/config.rpm.txt?distro=el&codename=8' > /tmp/vespa-vespa.repo -dnf config-manager --add-repo '/tmp/vespa-vespa.repo' -rm -f /tmp/vespa-vespa.repo +rpm --import 'https://dl.cloudsmith.io/public/vespa/open-source-rpms/gpg.0F3DA3C70D35DA7B.key' +curl -1sLf 'https://dl.cloudsmith.io/public/vespa/open-source-rpms/config.rpm.txt?distro=el&codename=8' > /tmp/vespa-open-source-rpms.repo +dnf config-manager --add-repo '/tmp/vespa-open-source-rpms.repo' +rm -f /tmp/vespa-open-source-rpms.repo readonly COPR_PACKAGES=$(mktemp) trap "rm -f $COPR_PACKAGES" EXIT @@ -45,7 +45,7 @@ cat $COPR_PACKAGES echo for pv in $(cat $COPR_PACKAGES); do - if ! $DNF list --disablerepo='*' --enablerepo=vespa-* $pv &> /dev/null; then + if ! $DNF list --disablerepo='*' --enablerepo=vespa-open-source-rpms $pv &> /dev/null; then echo "$pv not found on in archive. Downloading..." $DNF download --disablerepo='*' --enablerepo=copr:copr.fedorainfracloud.org:group_vespa:vespa $pv echo "$pv downloaded." diff --git a/screwdriver/upload-rpm-to-cloudsmith.sh b/screwdriver/upload-rpm-to-cloudsmith.sh index dd24185433b..6cd50277b3d 100755 --- a/screwdriver/upload-rpm-to-cloudsmith.sh +++ b/screwdriver/upload-rpm-to-cloudsmith.sh @@ -23,13 +23,13 @@ main() { --upload-file $RPM \ -u "$CLOUDSMITH_API_CREDS" \ -H "Content-Sha256: $(sha256sum $RPM | cut -f1 -d' ')" \ - https://upload.cloudsmith.io/vespa/vespa/$RPM | jq -re '.identifier') + https://upload.cloudsmith.io/vespa/open-source-rpms/$RPM | jq -re '.identifier') if [[ -n $FID ]]; then curl -sLf -X POST -H "Content-Type: application/json" \ -u "$CLOUDSMITH_API_CREDS" \ -d "{\"package_file\": \"$FID\", \"distribution\": \"$OS_DISTRO/$RELEASEVER\"}" \ - https://api-prd.cloudsmith.io/v1/packages/vespa/vespa/upload/rpm/ + https://api-prd.cloudsmith.io/v1/packages/vespa/open-source-rpms/upload/rpm/ fi } |