Commit 5b5463d9 by gyfnice

hello4.4

parent 152d3c10
Pipeline #96 failed
stages:
#- install_deps #安装依赖
- deploy_test #部署到内网的测试环境
cache:
paths:
- node_modules
before_script:
##
## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image)
##
#- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
##
## Run ssh-agent (inside the build environment)
##
#- eval $(ssh-agent -s)
#install_deps:
# image: node:6
# stage: install_deps
# script:
# - npm i -g cnpm --registry=https://registry.npm.taobao.org
# - cnpm install
deploy_test:
image: node:6
stage: deploy_test
script:
#- echo "$SSH_PRIVATE_KEY_TEST" | tr -d '\r' | ssh-add - > /dev/null
#- mkdir -p ~/.ssh
#- chmod 700 ~/.ssh
#- echo "$SSH_KNOWN_HOSTS_TEST" > ~/.ssh/known_hosts
#- chmod 644 ~/.ssh/known_hosts
#- '[[ -f /.dockerenv ]] && echo -e "Host *\\n\\tStrictHostKeyChecking no\\n\\n" > ~/.ssh/config'
#- npm run build:dev
#- ssh root@192.168.31.202 "rm -rf /data/web/tomcat/webapps/sail-web/build/Appdist"
#- scp -r build/* root@192.168.31.202:/data/web/tomcat/webapps/sail-web/build # 将打包好的dist拷贝到部署目录
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment