|
@@ -57,10 +57,15 @@ steps:
|
|
|
volumes:
|
|
|
- name: htmlDir
|
|
|
path: /htmlDir
|
|
|
+ - name: ssh
|
|
|
+ path: /root/.ssh
|
|
|
commands:
|
|
|
# 改为在 parent 打开
|
|
|
- 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 试验区
|
|
|
# image: cnlym/maven:3-jdk-11-alpine-aliyun
|
|
|
# volumes:
|
|
@@ -87,6 +92,10 @@ volumes:
|
|
|
host:
|
|
|
path: /opt/web/shoulderSpecsDocxxx
|
|
|
|
|
|
+- name: ssh
|
|
|
+ host:
|
|
|
+ path: /root/.ssh
|
|
|
+
|
|
|
trigger:
|
|
|
branch:
|
|
|
- master
|