Skip to content

Commit 90406ec

Browse files
committed
add particular endpoint flag
1 parent fc5c2df commit 90406ec

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

scripts/publish-rpm-packages.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done
5454

5555
# Download existing repository metadata if it exists
5656
printf "\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
6060
printf "\n>>> Creating repository metadata \n"
@@ -85,12 +85,12 @@ done
8585

8686
# Upload the updated repository to S3
8787
printf "\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
9191
printf "\n>>> Uploading public key \n"
9292
gpg --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

9595
printf "\n>>> RPM repository published successfully! \n"
9696
printf "Repository URL: ${PACKAGES_BUCKET_URL}/${RPM_REPO_PATH}/ \n"

0 commit comments

Comments
 (0)