File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ jobs:
101101 # Needed to publish new packages to our S3-hosted RPM repo
102102 AWS_ACCESS_KEY_ID : ${{ secrets.TEST_OBJECT_STORAGE_ACCESS_KEY_ID }}
103103 AWS_SECRET_ACCESS_KEY : ${{ secrets.TEST_OBJECT_STORAGE_SECRET_ACCESS_KEY }}
104+ AWS_DEFAULT_REGION : eu01
105+ AWS_ENDPOINT_URL : https://object.storage.eu01.onstackit.cloud
104106 steps :
105107 - name : Checkout
106108 uses : actions/checkout@v5
Original file line number Diff line number Diff line change 5454
5555# Download existing repository metadata if it exists
5656printf " \n>>> Downloading existing repository metadata \n"
57- aws s3 sync s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / rpm-repo/ --delete || echo " No existing repository found, creating new one"
57+ aws s3 sync s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / rpm-repo/ --endpoint-url " ${AWS_ENDPOINT_URL} " -- delete || echo " No existing repository found, creating new one"
5858
5959# Create repository metadata for each architecture
6060printf " \n>>> Creating repository metadata \n"
8585
8686# Upload the updated repository to S3
8787printf " \n>>> Uploading repository to S3 \n"
88- aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / --delete
88+ aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME} /${RPM_REPO_PATH} / --endpoint-url " ${AWS_ENDPOINT_URL} " -- delete
8989
9090# Upload the public key
9191printf " \n>>> Uploading public key \n"
9292gpg --armor --export " ${GPG_PRIVATE_KEY_FINGERPRINT} " > public-key.asc
93- aws s3 cp public-key.asc s3://${RPM_BUCKET_NAME} /${PUBLIC_KEY_FILE_PATH}
93+ aws s3 cp public-key.asc s3://${RPM_BUCKET_NAME} /${PUBLIC_KEY_FILE_PATH} --endpoint-url " ${AWS_ENDPOINT_URL} "
9494
9595printf " \n>>> RPM repository published successfully! \n"
9696printf " Repository URL: ${PACKAGES_BUCKET_URL} /${RPM_REPO_PATH} / \n"
You can’t perform that action at this time.
0 commit comments