|
@@ -57,10 +57,15 @@ steps:
|
|
volumes:
|
|
volumes:
|
|
- name: htmlDir
|
|
- name: htmlDir
|
|
path: /htmlDir
|
|
path: /htmlDir
|
|
|
|
+ - name: ssh
|
|
|
|
+ path: /root/.ssh
|
|
commands:
|
|
commands:
|
|
# 改为在 parent 打开
|
|
# 改为在 parent 打开
|
|
- cp -f script/afterGenHtml/pagefind-ui.js /htmlDir/pagefind/pagefind-ui.js
|
|
- cp -f script/afterGenHtml/pagefind-ui.js /htmlDir/pagefind/pagefind-ui.js
|
|
-
|
|
|
|
|
|
+ - whoami
|
|
|
|
+ - tar -zcf shoulder.tgz /htmlDir
|
|
|
|
+ - scp shoulder.tgz root@itlym.cn:/opt/web/
|
|
|
|
+ - ssh root@itlym.cn 'tar -zxf /opt/web/shoulder.tgz'
|
|
#- name: 生成 html,部署web 试验区
|
|
#- name: 生成 html,部署web 试验区
|
|
# image: cnlym/maven:3-jdk-11-alpine-aliyun
|
|
# image: cnlym/maven:3-jdk-11-alpine-aliyun
|
|
# volumes:
|
|
# volumes:
|
|
@@ -87,6 +92,10 @@ volumes:
|
|
host:
|
|
host:
|
|
path: /opt/web/shoulderSpecsDocxxx
|
|
path: /opt/web/shoulderSpecsDocxxx
|
|
|
|
|
|
|
|
+- name: ssh
|
|
|
|
+ host:
|
|
|
|
+ path: /root/.ssh
|
|
|
|
+
|
|
trigger:
|
|
trigger:
|
|
branch:
|
|
branch:
|
|
- master
|
|
- master
|