toolkit/sync/vault-sig.sh
Louis Abel b394a4d74e
Some checks failed
Build empanada images for imagefactory / buildx (push) Failing after 4s
Build empanada container images for lorax / buildx (push) Successful in 1s
add SIG vaulting
2023-11-21 20:09:43 -07:00

24 lines
656 B
Bash

#!/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