|
|
|
@ -1,3 +1,16 @@ |
|
|
|
# 常量值 |
|
|
|
constants: |
|
|
|
- &DEVELOPMENT_HOST test.tall.wiki |
|
|
|
- &DEVELOPMENT_PORT 22 |
|
|
|
- &DEVELOPMENT_CMD |
|
|
|
- npm config set registry http://registry.npm.taobao.org |
|
|
|
- npm i |
|
|
|
- npm run build:test |
|
|
|
- &DEVELOPMENT_SCP_TARGET /home/checkwork |
|
|
|
- &DEVELOPMENT_SCP_SOURCE dist/* |
|
|
|
- &SCP_STRIP_DIR_LEVEL 1 |
|
|
|
- &NOTIFY_WECHATROBOT_WEBHOOK https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 |
|
|
|
|
|
|
|
--- |
|
|
|
kind: pipeline |
|
|
|
type: docker |
|
|
|
@ -55,7 +68,7 @@ steps: |
|
|
|
- name: ssh_key |
|
|
|
path: /root/.ssh/ |
|
|
|
settings: |
|
|
|
host: test.tall.wiki |
|
|
|
host: *DEVELOPMENT_HOST |
|
|
|
port: 22 |
|
|
|
username: root |
|
|
|
key_path: /root/.ssh/id_rsa |
|
|
|
|