toolkit/sync/vault-release.sh

25 lines
630 B
Bash
Raw Normal View History

2023-05-22 10:32:05 +00:00
#!/bin/bash
2023-11-13 20:21:58 +00:00
# Syncs everything from production to vault
2023-05-22 10:32:05 +00:00
if [[ "$RLREL" == "lh" ]] || [[ "$RLREL" == "beta" ]]; then
2023-10-03 04:16:35 +00:00
echo "Lookahead nor Beta should be vaulted"
2023-05-22 10:32:05 +00:00
exit 1
fi
# Source common variables
# shellcheck disable=SC2046,1091,1090
source "$(dirname "$0")/common"
REV=${REVISION}
cd "${PRODUCTION_ROOT}/${CATEGORY_STUB}" || { echo "Failed to change directory"; ret_val=1; exit 1; }
ret_val=$?
if [ $ret_val -eq "0" ]; then
TARGET="${PRODUCTION_ROOT}/${VAULT_STUB}/${REV}"
mkdir -p "${TARGET}"
rsync_no_delete_prod "${REV}" "${TARGET}"
2023-10-03 04:16:35 +00:00
echo "Syncing to the vault completed. Please run the file list script."
2023-05-22 10:32:05 +00:00
fi