CI: sudo preflight for restricted sudoers
Some checks failed
Deploy / deploy (push) Failing after 8s
Some checks failed
Deploy / deploy (push) Failing after 8s
This commit is contained in:
parent
529ae3da07
commit
c7bb43219f
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ jobs:
|
|||
echo 'ERROR: sudo not installed on services server' >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! sudo -n true 2>/dev/null; then
|
||||
echo 'ERROR: passwordless sudo is required for CI deploy (configure NOPASSWD for this SSH user)' >&2
|
||||
if ! sudo -n /usr/bin/git --version >/dev/null 2>&1; then
|
||||
echo 'ERROR: passwordless sudo is required for CI deploy (configure NOPASSWD for this SSH user and required commands)' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue