Havoc420Mac 876ea27a22
All checks were successful
SSH 连接测试 / ssh-test (push) Successful in 6m51s
test-ssh-docker-2
2025-04-05 15:27:08 +08:00

25 lines
558 B
YAML

name: SSH 连接测试
on:
workflow_dispatch: # 手动触发
push:
branches:
- main # 仅main分支触发
jobs:
ssh-test:
runs-on: ubuntu-latest
steps:
- name: SSH 连接测试
uses: appleboy/ssh-action@master
with:
host: '113.44.68.213'
username: root
password: Havocantelope420
port: '22'
script: |
docker pull hello-world
docker stop hello-world || true
docker rm hello-world || true
docker run hello-world