Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlabAuto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gyfnice
gitlabAuto
Commits
5b5463d9
Commit
5b5463d9
authored
Jan 09, 2019
by
gyfnice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hello4.4
parent
152d3c10
Pipeline
#96
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
.gitlab-ci.yml
.gitlab-ci.yml
+35
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
5b5463d9
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拷贝到部署目录
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment