mygithub.libinneed.workers.dev/stackitcloud/stackit-cli
Advanced tools
Sorry, the diff of this file is not supported yet
@@ -13,3 +13,3 @@ #!/bin/bash | ||
| PUBLIC_KEY_FILE="key.gpg" | ||
| CUSTIM_KEYRING_PIPELINE_FOLDER="/Users/runner/.gnupg" | ||
| CUSTOM_KEYRING_PIPELINE_FOLDER="/Users/runner/.gnupg" | ||
| CUSTOM_KEYRING_FILE="custom-keyring.gpg" | ||
@@ -22,9 +22,11 @@ DISTRIBUTION="stackit" | ||
| printf ">>> Creating mirror \n" | ||
| curl ${OBJECT_STORAGE_ENDPOINT}/${PUBLIC_KEY_BUCKET_NAME}/${PUBLIC_KEY_FILE} >public.asc | ||
| gpg --no-default-keyring --keyring ${CUSTIM_KEYRING_PIPELINE_FOLDER}/${CUSTOM_KEYRING_FILE} --import public.asc | ||
| aptly mirror create -keyring="${CUSTOM_KEYRING_FILE}" current "${OBJECT_STORAGE_ENDPOINT}/${APT_BUCKET_NAME}" ${DISTRIBUTION} # Folder (CUSTIM_KEYRING_PIPELINE_FOLDER) is appended automatic in the aptly command | ||
| # curl ${OBJECT_STORAGE_ENDPOINT}/${PUBLIC_KEY_BUCKET_NAME}/${PUBLIC_KEY_FILE} >public.asc | ||
| # gpg --no-default-keyring --keyring=${CUSTOM_KEYRING_PIPELINE_FOLDER}/${CUSTOM_KEYRING_FILE} --import public.asc | ||
| # aptly mirror create -keyring="${CUSTOM_KEYRING_FILE}" current "${OBJECT_STORAGE_ENDPOINT}/${APT_BUCKET_NAME}" ${DISTRIBUTION} # Folder (CUSTOM_KEYRING_PIPELINE_FOLDER) is appended automatic in the aptly command | ||
| aptly mirror create current "${OBJECT_STORAGE_ENDPOINT}/${APT_BUCKET_NAME}" ${DISTRIBUTION} | ||
| # Update the mirror to the latest state | ||
| printf "\n>>> Updating mirror \n" | ||
| aptly mirror update -keyring="${CUSTOM_KEYRING_FILE}" current | ||
| # aptly mirror update -keyring="${CUSTOM_KEYRING_FILE}" current | ||
| aptly mirror update current | ||
@@ -31,0 +33,0 @@ # Create a snapshot of the mirror |