Compare commits

..

No commits in common. "main" and "0.1.2" have entirely different histories.
main ... 0.1.2

View file

@ -23,31 +23,6 @@ readonly APKBUILD_GIT_REPO_BASE="https://git.noveria.org/APKBUILD"
# Miscellaneous functions # Miscellaneous functions
## ##
function usage() {
echo -e "Noveria Alpine Linux repository build management
Usage: $(basename $0) <operations> [...]
Operations:
Miscellaneous:
-h, --help Usage information
-p, --publish Publish files to webserver (not yet implemented)
--debug Start debug-container bash shell
--init Initialize local directories & abuild keys
Podman:
-b, --build (Re)build podman image
DB management:
-d, --delete <pkgname> Delete package
-r, --refresh Refresh APKINDEX with packages in repo
-s, --sign Sign APKINDEX with abuild private key
Package management:
-k, --apkbuild Build binary package from APKBUILD and move to, refresh and sign local repository
"
}
function init_local() { function init_local() {
if [[ ! -d "${BUILD_DIR}" || ! -d "${REPO_DIR}" || ! -d "${KEYS_DIR}" || ! -f "${PKG_LIST_FILE}" ]]; then if [[ ! -d "${BUILD_DIR}" || ! -d "${REPO_DIR}" || ! -d "${KEYS_DIR}" || ! -f "${PKG_LIST_FILE}" ]]; then
message_blue_double_colon "Initializing local directories" message_blue_double_colon "Initializing local directories"
@ -187,7 +162,7 @@ function publish_repo() {
local ssh_priv_key_path="$(jq -r '.ssh_priv_key_path' $CONFIG)" local ssh_priv_key_path="$(jq -r '.ssh_priv_key_path' $CONFIG)"
message_blue_double_colon "Publishing files to remote webserver: ${remote_user}@${remote_server}:${remote_path}/" message_blue_double_colon "Publishing files to remote webserver: ${remote_user}@${remote_server}:${remote_path}/"
rsync -a --delete -e "ssh -i ${ssh_priv_key_path}" --progress --rsync-path="mkdir -p ${remote_path} && rsync" "${REPO_DIR}/" "${remote_user}@${remote_server}:${remote_path}" rsync -a --delete --progress --rsync-path="mkdir -p ${remote_path} && rsync" "${REPO_DIR}/" "${remote_user}@${remote_server}:${remote_path}"
} }
## ##