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:
parent
549fb7ebc4
commit
cc4f31fdfc
1 changed files with 16 additions and 0 deletions
|
@ -32,6 +32,21 @@ commands:
|
||||||
paths:
|
paths:
|
||||||
- ./vendor/bundle
|
- ./vendor/bundle
|
||||||
key: bundle-v1-{{ arch }}-<< parameters.version >>-{{ checksum "Gemfile.lock" }}
|
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:
|
jobs:
|
||||||
danger:
|
danger:
|
||||||
|
@ -58,6 +73,7 @@ jobs:
|
||||||
name: ruby
|
name: ruby
|
||||||
version: << parameters.version >>
|
version: << parameters.version >>
|
||||||
steps:
|
steps:
|
||||||
|
- update_ssh_client
|
||||||
- checkout
|
- checkout
|
||||||
- bundle_install:
|
- bundle_install:
|
||||||
version: << parameters.version >>
|
version: << parameters.version >>
|
||||||
|
|
Loading…
Reference in a new issue