Skip to content

Commit 656b3c6

Browse files
authored
Publish APT repo to new bucket (#164)
* Publish APT repo to new bucket * Replace old bucket with new bucket
1 parent d27f3bf commit 656b3c6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.aptly.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"skipBz2Publishing": false,
2222
"FileSystemPublishEndpoints": {},
2323
"S3PublishEndpoints": {
24-
"stackit-cli-apt": {
24+
"distribution": {
2525
"region": "eu01",
26-
"bucket": "stackit-cli-apt",
26+
"bucket": "distribution",
2727
"acl":"public-read",
2828
"endpoint": "object.storage.eu01.onstackit.cloud"
2929
}

scripts/publish-apt-packages.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set -eo pipefail
77
ROOT_DIR=$(git rev-parse --show-toplevel)
88

99
OBJECT_STORAGE_ENDPOINT="https://object.storage.eu01.onstackit.cloud"
10-
APT_BUCKET_NAME="stackit-cli-apt"
10+
APT_BUCKET_NAME="distribution"
11+
APT_REPO_FOLDER="apt/cli"
1112
PUBLIC_KEY_BUCKET_NAME="stackit-public-key"
1213
PUBLIC_KEY_FILE="key.gpg"
1314
CUSTOM_KEYRING_FILE="aptly-keyring.gpg"
@@ -51,4 +52,4 @@ aptly snapshot pull -no-remove -architectures="amd64,i386,arm64" current-snapsho
5152

5253
# Publish the new snapshot to the remote repo
5354
printf "\n>>> Publishing updated snapshot \n"
54-
aptly publish snapshot -keyring="${CUSTOM_KEYRING_FILE}" -gpg-key="${GPG_PRIVATE_KEY_FINGERPRINT}" -passphrase "${GPG_PASSPHRASE}" -config "${APTLY_CONFIG_FILE_PATH}" updated-snapshot "s3:${APT_BUCKET_NAME}:"
55+
aptly publish snapshot -keyring="${CUSTOM_KEYRING_FILE}" -gpg-key="${GPG_PRIVATE_KEY_FINGERPRINT}" -passphrase "${GPG_PASSPHRASE}" -config "${APTLY_CONFIG_FILE_PATH}" updated-snapshot "s3:${APT_BUCKET_NAME}:${APT_REPO_FOLDER}"

0 commit comments

Comments
 (0)