install SSH key

This commit is contained in:
John Bowdre 2024-02-27 19:42:48 -06:00
parent 6fda9fb38f
commit 74e3ce9663

View file

@ -52,10 +52,12 @@ jobs:
oauth-client-id: ${{ secrets.TS_API_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_API_CLIENT_SECRET }}
tags: ${{ secrets.TS_TAG }}
- name: Cache SSH known hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H ${{ secrets.GMI_HOST }} >> ~/.ssh/known_hosts
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Deploy GMI to Agate
run: |
which rsync