Skip to content

Commit

Permalink
add SIG vaulting
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Nov 22, 2023
1 parent a1aceb2 commit b394a4d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions sync/common
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
5 changes: 4 additions & 1 deletion sync/common_8
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
;;
Expand Down
3 changes: 3 additions & 0 deletions sync/common_9
Original file line number Diff line number Diff line change
Expand Up @@ -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"
;;
Expand Down
24 changes: 24 additions & 0 deletions sync/vault-sig.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b394a4d

Please sign in to comment.