From 437c803a8aa2c2f219b88c9e54b52b89dc670805 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 8 Sep 2023 10:01:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20.devops/=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=91=E5=B8=83.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/生产环境发布.yml | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .devops/生产环境发布.yml diff --git a/.devops/生产环境发布.yml b/.devops/生产环境发布.yml new file mode 100644 index 0000000..05ac588 --- /dev/null +++ b/.devops/生产环境发布.yml @@ -0,0 +1,53 @@ +version: 2 +name: 生产环境发布 +description: "" +global: + concurrent: 1 +workflow: + - ref: start + name: 开始 + task: start + - ref: nodejs_build_0 + name: nodejs构建 + task: nodejs_build@1.7.0-node12 + input: + workspace: ((git_clone_0.git_path)) + build_action: '"build"' + build_args: '""' + install_args: '""' + registry_url: '""' + disturl_url: '""' + sass_binary_site_url: '""' + package_management_type: '"yarn"' + vc_package_dir: '"."' + cache_path: '"/cache"' + needs: + - git_clone_0 + - ref: git_clone_0 + name: git clone + task: git_clone@1.2.9 + input: + remote_url: '"https://www.gitlink.org.cn/gitlink/gitlink_help_center.git"' + ref: '"refs/heads/master"' + commit_id: '""' + depth: 1 + needs: + - start + - ref: end + name: 结束 + task: end + needs: + - scp_resource_0 + - ref: scp_resource_0 + name: scp替换文件 + task: scp_resource@1.4.3 + input: + ssh_ip: '""' + ssh_port: '"22"' + ssh_user: '"root"' + remote_file: '""' + local_file: '""' + file_content: '""' + needs: + - nodejs_build_0 +