diff --git a/gha-script/upload-scripts/upload_file.sh b/gha-script/upload-scripts/upload_file.sh index 531b4a6..430e05a 100644 --- a/gha-script/upload-scripts/upload_file.sh +++ b/gha-script/upload-scripts/upload_file.sh @@ -12,7 +12,7 @@ if [[ $(echo "$token_request" | jq -r '.errorCode') == "null" ]]; then token=$(echo "$token_request" | jq -r '.access_token') # curl command for uploading the file - response=$(curl -X PUT -H "Authorization: bearer $token" -H "Content-Type: application/gzip" -T $1 "https://s3.us-south.cloud-object-storage.appdomain.cloud/ose-s390x-toolci-bucket-dev/$PACKAGE_NAME/$VERSION/$1") + response=$(curl -X PUT -H "Authorization: bearer $token" -H "Content-Type: application/gzip" -T $1 "https://s3.us.cloud-object-storage.appdomain.cloud/ose-s390x-toolci-bucket-production/$PACKAGE_NAME/$VERSION/$1") # Check if the PUT request was successful based on the absence of an block if ! echo "$response" | grep -q ""; then diff --git a/gha-script/upload-scripts/upload_wheel.sh b/gha-script/upload-scripts/upload_wheel.sh index 375d90f..2b72bdf 100644 --- a/gha-script/upload-scripts/upload_wheel.sh +++ b/gha-script/upload-scripts/upload_wheel.sh @@ -13,7 +13,7 @@ if [[ $(echo "$token_request" | jq -r '.errorCode') == "null" ]]; then token=$(echo "$token_request" | jq -r '.access_token') # curl command for uploading the file - response=$(curl -X PUT -H "Authorization: bearer $token" -H "Content-Type: application/octet-stream" -T $1 "https://s3.us-south.cloud-object-storage.appdomain.cloud/ose-s390x-artifacts/$PACKAGE_NAME/$VERSION/$1") + response=$(curl -X PUT -H "Authorization: bearer $token" -H "Content-Type: application/octet-stream" -T $1 "https://s3.us.cloud-object-storage.appdomain.cloud/ose-s390x-artifacts-production/$PACKAGE_NAME/$VERSION/$1") # Check if the PUT request was successful based on the absence of an block if ! echo "$response" | grep -q ""; then diff --git a/process_bom/ca_config.py b/process_bom/ca_config.py index 126ea12..bb5c1fc 100644 --- a/process_bom/ca_config.py +++ b/process_bom/ca_config.py @@ -35,9 +35,9 @@ "Syft", "Clair", ] -CLOUD_OBJECT_BUCKET_NAME = "ose-s390x-toolci-bucket-dev" -CLOUD_OBJECT_CVE_SBOM_BUCKET = "ose-s390x-sbom-cve-details-dev" -CLOUD_OBJECT_STORAGE_URL = "https://s3.us-south.cloud-object-storage.appdomain.cloud" +CLOUD_OBJECT_BUCKET_NAME = "ose-s390x-toolci-bucket-production" +CLOUD_OBJECT_CVE_SBOM_BUCKET = "ose-s390x-sbom-cve-details-production" +CLOUD_OBJECT_STORAGE_URL = "https://s3.us.cloud-object-storage.appdomain.cloud" CLOUD_OBJECT_AUTH_ENDPOINT = "https://iam.cloud.ibm.com/identity/token" @@ -54,3 +54,5 @@ + +