deploy.variables 1.35 KB
Newer Older
1 2 3 4 5
# -*- mode:sh -*-

# Checking for DB updates, only really done on some hosts
case ${HOSTNAME} in
    fasolo|seger)
6
        declare -gr NEEDDB="yes, we need to check for DB updates"
7 8
        ;;
    *)
9
        declare -gr NEEDDB=""
10 11 12 13 14 15 16
esac
# Whats the last db update revision before update
OLDDBVER=0
# Whats the last db update revision after update
NEWDBVER=0

# Where is our code
17
declare -gr GITURL="https://salsa.debian.org/ftp-team/dak.git"
18 19

# Where to send error log messages to
20
declare -gr MAILTO=${MAILTO:-"ftpmaster@debian.org"}
21 22 23 24 25

# Store at which DB update we are in live system
if [[ -n ${NEEDDB} ]]; then
    OLDDBVER=$(ls -1 ${masterdir}/dak/dakdb/update*py|sort -V|tail -n 1)
    OLDDBVER=${OLDDBVER##*update}
26
    declare -gr OLDDBVER=${OLDDBVER%%.py}
27 28 29 30 31 32 33
fi

# GPG options for verifying stuff
DEFGPGOPT="--no-default-keyring --batch --no-tty --no-options --exit-on-status-write-error --no-greeting --with-colons --keyring /srv/keyring.debian.org/keyrings/debian-keyring.gpg"

# Which key is allowed to sign commits for a deploy
# Only keys count, values are just for fun.
34
declare -gA DEPLOY_KEYS=(
35 36 37 38 39 40
  ["309911BEA966D0613053045711B4E5FF15B0FD82"]="mhy"
  ["80E976F14A508A48E9CA3FE9BC372252CA1CF964"]="ansgar"
  ["FBFABDB541B5DC955BD9BA6EDB16CF5BB12525C4"]="joerg"
  ["C74F6AC9E933B3067F52F33FA459EC6715B0705F"]="alteholz"
  ["8C823DED10AA8041639E12105ACE8D6E0C14A470"]="lfaraone"
)