From c3fc3cdcc895825a993be5e85c32968f606e11fc Mon Sep 17 00:00:00 2001 From: Eazzy <1044745821@qq.com> Date: Thu, 23 May 2024 14:51:50 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20.devops/=E8=87=AA=E5=8A=A8=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E9=95=9C=E5=83=8F.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/自动上传镜像.yml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .devops/自动上传镜像.yml diff --git a/.devops/自动上传镜像.yml b/.devops/自动上传镜像.yml new file mode 100644 index 0000000..e29b568 --- /dev/null +++ b/.devops/自动上传镜像.yml @@ -0,0 +1,46 @@ +version: 2 +name: 自动上传镜像 +description: "" +global: + concurrent: 1 +trigger: + webhook: gitlink@1.0.0 + event: + - ref: push + ruleset-operator: AND +workflow: + - ref: start + name: 开始 + task: start + - ref: git_clone_0 + name: git clone + task: git_clone@1.2.9 + input: + remote_url: '"https://gitlink.org.cn/Eazzy/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: ((docker.username)) + docker_password: ((docker.docker_key)) + image_name: '"registry.cn-guangzhou.aliyuncs.com/eazzy_devops/gitlink_help_center_groupeazzy"' + image_tag: '"latest"' + registry_address: '"registry.cn-guangzhou.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: + - docker_image_build_0 +