CI/CD
This commit is contained in:
@@ -102,15 +102,15 @@ jobs:
|
||||
# run: |
|
||||
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
|
||||
- name: Install ssh client
|
||||
|
||||
- name Test
|
||||
run: |
|
||||
apt-get install -y openssh-client
|
||||
echo "${{secrets.SSH_PRIVATE_KEY}}"
|
||||
|
||||
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
printf "%s" "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
|
||||
|
||||
Reference in New Issue
Block a user