feat: add test

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/695/head
Xinwei Xiong(cubxxw-openim) 1 year ago
parent c509f7d4d2
commit e9f5752e29
No known key found for this signature in database
GPG Key ID: 1BAD6F395338EFDE

@ -26,12 +26,6 @@ on:
- 'docker-compose.yml' - 'docker-compose.yml'
- 'bin/*' - 'bin/*'
env:
SERVER_PRIVATE_KEY: ${{ secrets.SERVER_PRIVATE_KEY }} # server private key
SERVER_HOST: ${{ secrets.SERVER_HOST }} # server ip address
USER_NAME: ${{ secrets.USER_NAME }} # server username
cache-name: note
jobs: jobs:
deploy-dev: deploy-dev:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -44,6 +38,14 @@ jobs:
echo "${{secrets.WFP_ID_RSA}}" > ~/.ssh/id_rsa echo "${{secrets.WFP_ID_RSA}}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
ssh-keyscan "182.92.xxx.xxx" >> ~/.ssh/known_hosts ssh-keyscan "182.92.xxx.xxx" >> ~/.ssh/known_hosts
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
- name: deploy # Deployment - name: deploy # Deployment
run: | run: |
ssh work@182.92.xxx.xxx " ssh work@182.92.xxx.xxx "

Loading…
Cancel
Save