1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Install newer SSH client to fix CI for old Rubies (#2106)

This commit is contained in:
Matt Brictson 2022-03-19 13:29:16 -07:00 committed by GitHub
parent 549fb7ebc4
commit cc4f31fdfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,21 @@ commands:
paths:
- ./vendor/bundle
key: bundle-v1-{{ arch }}-<< parameters.version >>-{{ checksum "Gemfile.lock" }}
update_ssh_client:
description: Install recent SSH client for compatibility with GitHub
steps:
- run:
name: Install OpenSSH 8.1p1 if necessary
command: |
if $(ssh -V 2>&1 | grep -q -v OpenSSH_8); then
apt-get update
apt-get install -y libssl-dev
mkdir ~/tempdownload
cd ~/tempdownload
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz
tar zxvf openssh-8.1p1.tar.gz
cd openssh-8.1p1 && ./configure --prefix=/usr && make ssh && make install
fi
jobs:
danger:
@ -58,6 +73,7 @@ jobs:
name: ruby
version: << parameters.version >>
steps:
- update_ssh_client
- checkout
- bundle_install:
version: << parameters.version >>