CI: Warn when setting up a buildkite agent with no SSH authorized_keys

This commit is contained in:
Trent Nelson
2020-10-14 16:02:47 -06:00
committed by Trent Nelson
parent c26512255d
commit f9e0ea112d
3 changed files with 36 additions and 0 deletions

View File

@ -6,6 +6,11 @@ HERE="$(dirname "$0")"
source "$HERE"/utils.sh
ensure_env || exit 1
# This is a last ditch effort to prevent the caller from locking themselves
# out of the machine. Exiting here will likely leave the system in some
# half-configured state. To prevent this, duplicate the next line at the top
# of the entrypoint script.
check_ssh_authorized_keys || exit 1
set -xe
# Setup sshd