diff --git a/.devops/build.yml b/.devops/build.yml index 4015637c..0f40932a 100644 --- a/.devops/build.yml +++ b/.devops/build.yml @@ -16,8 +16,6 @@ workflow: name: git clone task: git_clone@1.2.9 input: - username: ((gitlink_cli.wyx_git_user)) - password: ((gitlink_cli.wyx_git_pass)) remote_url: '"https://gitlink.org.cn/jiangtx/gitlink-cli.git"' ref: '"refs/heads/master"' commit_id: '""' @@ -31,7 +29,7 @@ workflow: ssh_ip: '"121.41.212.97"' ssh_port: '"22"' ssh_user: '"root"' - ssh_pass: ((gitlink_cli.wyx_ssh_pass)) + ssh_pass: ((gitlink_cli_ci.ssh_pass)) ssh_cmd: >- "cd /root && rm -rf gitlink-cli && git clone --depth=1 -b master https://gitlink.org.cn/jiangtx/gitlink-cli.git && cd gitlink-cli && export PATH=$PATH:/usr/local/go/bin && export GOPROXY=https://goproxy.cn,direct && echo '>>> 编译二进制' && go build -o gitlink-cli . && echo '>>> 验证根命令' && ./gitlink-cli --help | head -20 && echo '>>> 验证 pm 模块(6条命令)' && ./gitlink-cli pm --help && echo '>>> 验证 wiki 模块(5条命令)' && ./gitlink-cli wiki --help && echo '>>> 验证 export 模块(3条命令)' && ./gitlink-cli export --help && echo '>>> 验证 alias 命令' && ./gitlink-cli alias --help && echo '>>> 验证 browse 命令' && ./gitlink-cli browse --help && echo '>>> 验证 status 命令' && ./gitlink-cli status && echo '✅ 所有命令验证通过'" needs: diff --git a/.devops/ci.yml b/.devops/ci.yml index 74e8fc3f..9c21bc27 100644 --- a/.devops/ci.yml +++ b/.devops/ci.yml @@ -16,8 +16,6 @@ workflow: name: git clone task: git_clone@1.2.9 input: - username: ((gitlink_cli.wyx_git_user)) - password: ((gitlink_cli.wyx_git_pass)) remote_url: '"https://gitlink.org.cn/jiangtx/gitlink-cli.git"' ref: '"refs/heads/master"' commit_id: '""' @@ -31,7 +29,7 @@ workflow: ssh_ip: '"121.41.212.97"' ssh_port: '"22"' ssh_user: '"root"' - ssh_pass: ((gitlink_cli.wyx_ssh_pass)) + ssh_pass: ((gitlink_cli_ci.ssh_pass)) ssh_cmd: >- "cd /root && rm -rf gitlink-cli && git clone --depth=1 -b master https://gitlink.org.cn/jiangtx/gitlink-cli.git && cd gitlink-cli && export PATH=$PATH:/usr/local/go/bin && export GOPROXY=https://goproxy.cn,direct && go version && echo '>>> 1. 编译检查' && go build ./... && echo '>>> 2. 静态分析' && go vet ./... && echo '>>> 3. 单元测试' && go test -race ./... && echo '>>> 4. 格式化检查' && output=$(gofmt -s -l .) && if [ -n \"$output\" ]; then echo '格式化检查失败:' && echo \"$output\" && exit 1; fi && echo '✅ 所有 CI 检查通过'" needs: