forked from sig_core/toolkit
add SIG vaulting
This commit is contained in:
parent
a1aceb2be4
commit
b394a4d74e
4 changed files with 32 additions and 1 deletions
|
@ -30,6 +30,7 @@ COMPOSE_ROOT="/mnt/compose"
|
|||
CATEGORY_STUB="mirror/pub/rocky"
|
||||
SIG_CATEGORY_STUB="mirror/pub/sig"
|
||||
VAULT_STUB="mirror/vault/rocky"
|
||||
SIG_VAULT_STUB="mirror/vault/sig"
|
||||
|
||||
# Override: Required
|
||||
#RELEASE_DIR="${CATEGORY_STUB}/${REVISION}${APPEND_TO_DIR}"
|
||||
|
|
|
@ -4,15 +4,18 @@
|
|||
case "${RLREL}" in
|
||||
stable)
|
||||
REVISION=8.9
|
||||
PREREV=8.8
|
||||
APPEND_TO_DIR="-RC2"
|
||||
;;
|
||||
beta)
|
||||
REVISION=8.9
|
||||
REVISION=8.10
|
||||
PREREV=8.9
|
||||
APPEND_TO_DIR="-BETA"
|
||||
COMPOSE_APPEND="${APPEND_TO_DIR}"
|
||||
;;
|
||||
lh)
|
||||
REVISION=8.10
|
||||
PREREV=8.9
|
||||
APPEND_TO_DIR="-LookAhead"
|
||||
COMPOSE_APPEND="${APPEND_TO_DIR}"
|
||||
;;
|
||||
|
|
|
@ -4,15 +4,18 @@
|
|||
case "${RLREL}" in
|
||||
stable)
|
||||
REVISION=9.3
|
||||
PREREV=9.2
|
||||
APPEND_TO_DIR="-RC1"
|
||||
;;
|
||||
beta)
|
||||
REVISION=9.4
|
||||
PREREV=9.3
|
||||
APPEND_TO_DIR="-beta"
|
||||
COMPOSE_APPEND="-beta"
|
||||
;;
|
||||
lh)
|
||||
REVISION=9.4
|
||||
PREREV=9.3
|
||||
APPEND_TO_DIR="-lookahead"
|
||||
COMPOSE_APPEND="-lookahead"
|
||||
;;
|
||||
|
|
24
sync/vault-sig.sh
Normal file
24
sync/vault-sig.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
# Syncs everything from SIG production to vault
|
||||
|
||||
if [[ "$RLREL" == "lh" ]] || [[ "$RLREL" == "beta" ]]; then
|
||||
echo "Lookahead nor Beta should be vaulted"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Source common variables
|
||||
# shellcheck disable=SC2046,1091,1090
|
||||
source "$(dirname "$0")/common"
|
||||
|
||||
MAJOR=${RLVER}
|
||||
PRE=${PREREV}
|
||||
|
||||
cd "${PRODUCTION_ROOT}/${SIG_CATEGORY_STUB}" || { echo "Failed to change directory"; ret_val=1; exit 1; }
|
||||
ret_val=$?
|
||||
|
||||
if [ $ret_val -eq "0" ]; then
|
||||
TARGET="${PRODUCTION_ROOT}/${SIG_VAULT_STUB}/${PRE}"
|
||||
mkdir -p "${TARGET}"
|
||||
rsync_no_delete_prod "${MAJOR}" "${TARGET}"
|
||||
echo "Syncing to the vault completed. Please run the file list script."
|
||||
fi
|
Loading…
Reference in a new issue