From bbc640b7594dcc748eabc78e5f794c423f7f0819 Mon Sep 17 00:00:00 2001 From: Alban Lefebvre Date: Fri, 4 Aug 2023 09:31:32 +0000 Subject: [PATCH 1/3] Install openssh pkg on amazonlinux --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5baaabe..7a174635 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,12 @@ jobs: fail-fast: false steps: + - name: Install openssh on Amazon Linux + if: matrix.os == 'amazonlinux-2' + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: 'openssh-server' + version: 1.0 - name: Check out code uses: actions/checkout@v3 - name: Install Chef From 411d35767e32442cc3f9f99c028af3cb3033a829 Mon Sep 17 00:00:00 2001 From: Alban Lefebvre Date: Fri, 4 Aug 2023 09:38:00 +0000 Subject: [PATCH 2/3] Trying with yum --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a174635..dace15c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,10 +53,8 @@ jobs: steps: - name: Install openssh on Amazon Linux if: matrix.os == 'amazonlinux-2' - uses: awalsh128/cache-apt-pkgs-action@latest - with: - packages: 'openssh-server' - version: 1.0 + run: 'sudo yum install openssh-server' + shell: bash - name: Check out code uses: actions/checkout@v3 - name: Install Chef From 5adc66400b8e36333b8cbbda0050caf9b0cd950d Mon Sep 17 00:00:00 2001 From: Alban Lefebvre Date: Fri, 4 Aug 2023 09:57:06 +0000 Subject: [PATCH 3/3] Trying apt-get --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dace15c3..5049e677 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: steps: - name: Install openssh on Amazon Linux if: matrix.os == 'amazonlinux-2' - run: 'sudo yum install openssh-server' + run: 'sudo apt-get install openssh-server' shell: bash - name: Check out code uses: actions/checkout@v3