mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
feat: add test
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
c509f7d4d2
commit
e9f5752e29
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@ -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…
x
Reference in New Issue
Block a user