From 152280f5e117eb1bfcb14a6ae72cb62629b069c0 Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Sat, 27 Aug 2022 23:11:23 +0100 Subject: [PATCH] adding ssh key action --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 175cbda..44a905c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,11 @@ jobs: name: Tests runs-on: ubuntu-latest steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + known_hosts: ${{ secrets.KNOWN_HOSTS }} - name: Check out the codebase. uses: actions/checkout@v3 - name: Prepare Test Files @@ -28,7 +33,6 @@ jobs: ansible-playbook setup-homelab.yml --syntax-check - name: Setup Linode Instance run: | - ssh-keygen -t rsa ansible-playbook setup-linode.yml env: ANSIBLE_FORCE_COLOR: '1'