From bb111dbbeb6df2919c2aa847f27caa2fae2b22fe Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 11 Jul 2024 15:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_api.drone.yml | 67 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 7 deletions(-) diff --git a/irc_api.drone.yml b/irc_api.drone.yml index 7b2be0ced..55df5dea8 100644 --- a/irc_api.drone.yml +++ b/irc_api.drone.yml @@ -18,8 +18,8 @@ server: steps: - name: build-uat-irc commands: - - cd /opt/1panel/devops/irc-uat-to-uat - - sh build-irc-uat-image.sh v${DRONE_BUILD_NUMBER} + - cd /opt/1panel/xc-deploy/Uat_IRC/devops-build-publish/Uat-To-Uat + - sh pull-build-uat-irc-image.sh v${DRONE_BUILD_NUMBER} trigger: branch: @@ -46,9 +46,7 @@ server: steps: - name: publish-test-irc commands: - - echo start publish test-irc-api - - cd /opt/1panel/hang/devops/test-irc - - sh test-irc.sh v${DRONE_BUILD_NUMBER} + - cd /opt/1panel/xc-deploy/Test_IRC/devops-build-publish;sh test-irc-update-or-create-stack.sh v${DRONE_BUILD_NUMBER} trigger: branch: @@ -75,13 +73,68 @@ server: steps: - name: publish-test-study commands: - - echo start publish test-study-api - - cd /opt/1panel/hang/devops/test-study + - cd /opt/1panel/xc-deploy/Test_Study/devops-build-publish - sh test-study.sh v${DRONE_BUILD_NUMBER} trigger: branch: - Test.Study + +--- +kind: pipeline +type: ssh +name: ssh-linux-test-scp-publish + +platform: + os: Linux + arch: 386 + +clone: + disable: true #禁用默认克隆 + +server: + host: 106.14.89.110 + user: root + password: + from_secret: test_ssh_pwd + +steps: +- name: publish-test-hir-scp + commands: + - cd /opt/1panel/xc-deploy/Test_HIR_SCP/devops-build-publish;sh pull-build-test-hir-scp-image.sh v${DRONE_BUILD_NUMBER} + - cd /opt/1panel/xc-deploy/Test_HIR_SCP ;sh update-image-if-need-then-pull-aliyun.sh v${DRONE_BUILD_NUMBER} +trigger: + branch: + - Test_HIR + +--- + + +kind: pipeline +type: ssh +name: ssh-linux-test-hir-publish + +platform: + os: Linux + arch: 386 + +clone: + disable: true #禁用默认克隆 + +server: + host: 106.14.89.110 + user: root + password: + from_secret: test_ssh_pwd + +steps: +- name: publish-test-hir + commands: + - cd /opt/1panel/xc-deploy/Test_HIR/devops-build-publish;sh pull-build-test-hir-image.sh v${DRONE_BUILD_NUMBER} + - cd /opt/1panel/xc-deploy/Test_HIR ; sh update-image-if-need-then-pull-aliyun.sh v${DRONE_BUILD_NUMBER} +trigger: + branch: + - Test_HIR \ No newline at end of file