Commit 9f46bbe627
Verified · cmc ci/daily-pull: failure
Layout: unified · split
.gitbay/ci.yml +5 −2
| @@ -22,8 +22,11 @@ jobs: | |||
| 22 | test -n "$GITBAY_SSH" || { echo "ERROR: GITBAY_SSH is not set; the runner is too old"; exit 1; } | 22 | test -n "$GITBAY_SSH" || { echo "ERROR: GITBAY_SSH is not set; the runner is too old"; exit 1; } |
| 23 | umask 077 | 23 | umask 077 |
| 24 | printf '%s\n' "$BOT_SSH_KEY" > "$PWD/.bot_key" | 24 | printf '%s\n' "$BOT_SSH_KEY" > "$PWD/.bot_key" |
| 25 | mkdir -p ~/.ssh | 25 | # ssh expands ~ from the passwd entry, not $HOME; in the build's |
| 26 | printf 'Host %s\n IdentityFile %s\n IdentitiesOnly yes\n StrictHostKeyChecking accept-new\n' "${GITBAY_SSH#*@}" "$PWD/.bot_key" > ~/.ssh/config | 26 | # container that is /root while $HOME is the build home. |
| 27 | sshhome=$(getent passwd "$(id -u)" | cut -d: -f6) | ||
| 28 | mkdir -p "$sshhome/.ssh" | ||
| 29 | printf 'Host %s\n IdentityFile %s\n IdentitiesOnly yes\n StrictHostKeyChecking accept-new\n' "${GITBAY_SSH#*@}" "$PWD/.bot_key" > "$sshhome/.ssh/config" | ||
| 27 | ssh "$GITBAY_SSH" whoami | 30 | ssh "$GITBAY_SSH" whoami |
| 28 | - | | 31 | - | |
| 29 | set -e | 32 | set -e |