更新 .gitea/workflows/research_build_manual.yaml
This commit is contained in:
@@ -113,9 +113,9 @@ jobs:
|
|||||||
$SUDO apt install -y sshpass openssh-client --no-install-recommends
|
$SUDO apt install -y sshpass openssh-client --no-install-recommends
|
||||||
# 配置SSH免密
|
# 配置SSH免密
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SEARCH_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${{ secrets.SEARCH_SERVER_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: 8.同步文件到远程服务器
|
- name: 8.同步文件到远程服务器
|
||||||
run: |
|
run: |
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
# 使用scp同步文件
|
# 使用scp同步文件
|
||||||
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
||||||
./target/*.jar ./Dockerfile ./docker-compose.yml \
|
./target/*.jar ./Dockerfile ./docker-compose.yml \
|
||||||
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:${{ env.REMOTE_DEPLOY_PATH }} 2>&1
|
${{ secrets.SEARCH_SERVER_USER }}@${{ secrets.SEARCH_SERVER_HOST }}:${{ env.REMOTE_DEPLOY_PATH }} 2>&1
|
||||||
|
|
||||||
|
|
||||||
- name: 9.部署和运行服务
|
- name: 9.部署和运行服务
|
||||||
|
|||||||
Reference in New Issue
Block a user