deploy.variables 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # -*- mode:sh -*-
  2. # Checking for DB updates, only really done on some hosts
  3. case ${HOSTNAME} in
  4. fasolo|seger)
  5. declare -gr NEEDDB="yes, we need to check for DB updates"
  6. ;;
  7. *)
  8. declare -gr NEEDDB=""
  9. esac
  10. # Whats the last db update revision before update
  11. OLDDBVER=0
  12. # Whats the last db update revision after update
  13. NEWDBVER=0
  14. # Where is our code
  15. declare -gr GITURL="https://salsa.debian.org/ftp-team/dak.git"
  16. # Where to send error log messages to
  17. declare -gr MAILTO=${MAILTO:-"ftpmaster@debian.org"}
  18. # Store at which DB update we are in live system
  19. if [[ -n ${NEEDDB} ]]; then
  20. OLDDBVER=$(ls -1 ${masterdir}/dak/dakdb/update*py|sort -V|tail -n 1)
  21. OLDDBVER=${OLDDBVER##*update}
  22. declare -gr OLDDBVER=${OLDDBVER%%.py}
  23. fi
  24. # GPG options for verifying stuff
  25. 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"
  26. # Which key is allowed to sign commits for a deploy
  27. # Only keys count, values are just for fun.
  28. declare -gA DEPLOY_KEYS=(
  29. ["309911BEA966D0613053045711B4E5FF15B0FD82"]="mhy"
  30. ["80E976F14A508A48E9CA3FE9BC372252CA1CF964"]="ansgar"
  31. ["FBFABDB541B5DC955BD9BA6EDB16CF5BB12525C4"]="joerg"
  32. ["C74F6AC9E933B3067F52F33FA459EC6715B0705F"]="alteholz"
  33. ["8C823DED10AA8041639E12105ACE8D6E0C14A470"]="lfaraone"
  34. )