From e099fc9477570bc98cf052dac0dc1810792dae5c Mon Sep 17 00:00:00 2001 From: jkcl Date: Tue, 3 Jun 2025 10:35:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20.devops/=E6=9C=AA=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/未命名项目.yml | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .devops/未命名项目.yml diff --git a/.devops/未命名项目.yml b/.devops/未命名项目.yml new file mode 100644 index 0000000..5ceda78 --- /dev/null +++ b/.devops/未命名项目.yml @@ -0,0 +1,63 @@ +version: 2 +name: 未命名项目 +description: "" +global: + concurrent: 1 +trigger: + webhook: gitlink@1.0.0 + event: + - ref: push + ruleset: + - param-ref: branch + operator: EQ + value: '""' + ruleset-operator: AND +workflow: + - ref: start + name: 开始 + task: start + - ref: git_clone_0 + name: git clone + task: git_clone@1.2.9 + input: + username: ((yjh.gitlink_name)) + password: ((yjh.gitlink_passwd)) + remote_url: '"https://www.gitlink.org.cn/jkcl/gitlink_help_center.git"' + ref: '"refs/heads/master"' + commit_id: '""' + depth: 1 + needs: + - start + - ref: docker_image_build_0 + name: docker镜像构建 + task: docker_image_build@1.6.0 + input: + docker_username: ((yjh.aliyun_name)) + docker_password: ((yjh.aliyun_passwd)) + image_name: '"crpi-rlxgl92hhxkh8r6q.cn-hangzhou.personal.cr.aliyuncs.com/yuanjiahong/group_07"' + image_tag: '"latest"' + registry_address: '"crpi-rlxgl92hhxkh8r6q.cn-hangzhou.personal.cr.aliyuncs.com"' + docker_file: '"Dockerfile"' + docker_build_path: '"."' + workspace: git_clone_0.git_path + image_push: true + build_args: '""' + needs: + - git_clone_0 + - ref: end + name: 结束 + task: end + needs: + - ssh_cmd_0 + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_pass: ((yjh.ssh_passwd)) + ssh_ip: '"114.55.237.214"' + ssh_port: '"22"' + ssh_user: '"root"' + ssh_cmd: '""' + needs: + - docker_image_build_0 +