add: fix-python310 workflow
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
name: Fix Python 3.10 on New Server
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- ops/downgrade-runners
|
||||
paths:
|
||||
- '.gitea/workflows/fix-python310.yml'
|
||||
- 'scripts/fix_python310_and_port.py'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
fix-python310:
|
||||
runs-on: runtime-builder:host
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare SSH key
|
||||
run: |
|
||||
mkdir -p /root/.ssh
|
||||
echo "$SSH_PRIVATE_KEY" > /root/.ssh/new_server_ed25519
|
||||
chmod 600 /root/.ssh/new_server_ed25519
|
||||
# 测试连接
|
||||
ssh -i /root/.ssh/new_server_ed25519 -o StrictHostKeyChecking=no root@172.30.18.199 "echo SSH连接成功"
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.NEW_SERVER_SSH_KEY }}
|
||||
|
||||
- name: Install Python 3.10 + Fix CMD Agent port
|
||||
run: |
|
||||
export NEW_SERVER=172.30.18.199
|
||||
export SSH_KEY_PATH=/root/.ssh/new_server_ed25519
|
||||
python3 scripts/fix_python310_and_port.py
|
||||
Reference in New Issue
Block a user