Compare commits

...

42 Commits

Author SHA1 Message Date
shizhendong
2bd0345251 fix: fix ci.yml 2022-01-11 15:27:54 +08:00
方顺健
80035e2082 CN-56 Test: Update README.md 2021-07-20 07:07:24 +00:00
shizhendong
94c47cf0a3 fix 2021-06-25 10:40:44 +08:00
shizhendong
10109f5c95 fix: fix gitlab-ci.yml 2021-06-25 10:35:06 +08:00
shizhendong
1c309b2242 fix: fix 2021-06-25 09:49:37 +08:00
shizhendong
547aaaac5b fix: fix gitlab-ci.yml 2021-06-25 09:40:11 +08:00
shizhendong
bbc612e902 fix: fix gitlab-ci.yml 2021-06-24 18:21:47 +08:00
shizhendong
09afef4338 fix: fix gitlab-ci.yml 2021-06-24 18:11:13 +08:00
shizhendong
00a941c550 fix: fix gitlab-ci.yml 2021-06-24 17:59:28 +08:00
shizhendong
7a7d86c6d6 fix: fix gitlab-ci.yml 2021-06-24 17:58:41 +08:00
shizhendong
daab001b13 fix: fix gitlab-ci.yml 2021-06-24 17:14:42 +08:00
shizhendong
dd67cc4001 fix: fix gitlab-ci.yml 2021-06-24 17:09:51 +08:00
shizhendong
ae10488cc5 fix: fix gitlab-ci.yml 2021-06-24 17:04:07 +08:00
shizhendong
e8c8aa1646 fix: fix 2021-06-23 11:39:57 +08:00
shizhendong
ef0fd820dd fix: fix 2021-06-23 11:34:04 +08:00
shizhendong
98f523bf54 fix: fix gitlab-ci.yml 2021-06-21 11:42:57 +08:00
shizhendong
8ca1277ebb fix: fix gitlab-ci.yml 2021-06-21 09:57:30 +08:00
shizhendong
427bf78d31 fix: fix gitlab-ci.yml 2021-06-21 09:51:14 +08:00
shizhendong
1aeedd549d fix: fix gitlab-ci.yml 2021-06-21 09:45:21 +08:00
shizhendong
e8b1e82a2b fix: fix gitlab-ci.yml 2021-06-21 09:30:08 +08:00
shizhendong
53bad38f1d fix: fix gitlab-ci.yml 2021-06-21 09:28:15 +08:00
shizhendong
138f5975da fix: fix gitlab-ci.yml 2021-06-21 09:27:07 +08:00
shizhendong
3e7a71ea8a fix: fix gitlab-ci.yml 2021-06-18 18:40:00 +08:00
shizhendong
92ef524d17 fix: fix gitlab-ci.yml 2021-06-18 18:33:04 +08:00
shizhendong
99ae13987e fix: fix gitlab-ci.yml 2021-06-18 18:14:26 +08:00
shizhendong
65cd2f372b fix: fix gitlab-ci.yml 2021-06-18 18:04:22 +08:00
shizhendong
364781a817 fix: fix gitlab-ci.yml 2021-06-18 17:58:43 +08:00
shizhendong
b1043bb0ad fix: fix gitlab-ci.yml 2021-06-18 17:55:01 +08:00
shizhendong
7e58336ec8 fix: fix gitlab-ci.yml 2021-06-18 17:53:21 +08:00
shizhendong
cfa2fb659e fix: fix gitlab-ci.yml 2021-06-18 17:44:04 +08:00
shizhendong
763ee019c6 fix: fix gitlab-ci.yml 2021-06-18 17:42:08 +08:00
shizhendong
a2495ee242 fix: fix gitlab-ci.yml 2021-06-18 17:24:55 +08:00
shizhendong
fec74aec51 fix: fix gitlab-ci.yml 2021-06-18 17:16:53 +08:00
shizhendong
da3e94d36e fix: fix gitlab-ci.yml 2021-06-18 17:08:10 +08:00
shizhendong
d7ea50ce19 fix: fix gitlab-ci.yml 2021-06-18 17:07:07 +08:00
shizhendong
bde8f19dfb fix: fix gitlab-ci.yml 2021-06-18 17:06:25 +08:00
shizhendong
539283304c fix: fix gitlab-ci.yml 2021-06-18 17:04:38 +08:00
shizhendong
e8af8c5419 Merge remote-tracking branch 'origin/dev' into dev-cicd 2021-06-18 17:04:22 +08:00
shizhendong
ca6da7b25a fix: fix gitlab-ci.yml 2021-06-18 12:26:46 +08:00
shizhendong
98bd847c78 fix: fix gitlab-ci.yml 2021-06-18 11:41:08 +08:00
shizhendong
2827fb8222 fix: fix gitlab-ci.yml 2021-06-18 10:55:00 +08:00
shizhendong
0aa1581314 feat: add gitlab-ci.yml 2021-06-18 10:40:50 +08:00
3 changed files with 72 additions and 0 deletions

62
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,62 @@
#asdad
stages:
- gen_git-log
- build_project
- build_image
cache:
key:
files:
- package.json
paths:
- node_modules
- dist/
before_script:
- export UI_TAG=$(date +%Y%m%d%H%M%S)
generate_git-log:
stage: gen_git-log
script:
- if (( `grep git-log.html ./public/index.html | wc -l` == 0 )); then sed -i 's+</body>+<a style="position:fixed;bottom:20px;left:40px;z-index:999;color:white;" target="_blank" href="./git-log.html">更新记录</a>\n</body>+g' ./public/index.html; echo "添加更新记录链接"; fi;
- echo "最近的100个提交记录"
- echo "<!DOCTYPE html><html><head><meta charset='utf-8'></head><body><pre>" > ./public/git-log.html
- "git log -100 --pretty=format:'%ad : %s' >> ./public/git-log.html"
- echo "</pre></body></html>" >> ./public/git-log.html
- echo "处理 git-log.html 结束"
artifacts:
paths:
- public/index.html
- public/git-log.html
only:
- dev-cicd
tags:
- GN-XXG-Server
build_project:
stage: build_project
script:
- echo "npm install ..."
- npm install --save-dev --unsafe-perm
- echo "npm run build"
- npm run build
only:
- dev-cicd
tags:
- GN-XXG-Server
build_image:
stage: build_image
script:
- echo "docker build"
- sudo docker build -t dev_cn-ui:$UI_TAG .
- echo "docker tag"
- sudo docker tag dev_cn-ui:$UI_TAG 192.168.40.153:9080/test/dev_cn-ui:$UI_TAG
- echo "docker push"
- sudo docker push 192.168.40.153:9080/test/dev_cn-ui:$UI_TAG
when: on_success
only:
- dev-cicd
tags:
- GN-XXG-Server

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM nginx:latest
MAINTAINER shizhendong shizhendong@zdjizhi.com
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面
COPY dist/ /usr/share/nginx/html/
# nginx 配置 制作镜像时不做处理 容器可自己挂载配置文件
#COPY nginx.conf /etc/nginx/nginx.conf

View File

@@ -1,5 +1,6 @@
<template> <template>
<div> <div>
<p>12</p>
<el-input v-model="username"></el-input> <el-input v-model="username"></el-input>
<el-input v-model="pin"></el-input> <el-input v-model="pin"></el-input>
<button type="button" @click="login">Login</button> <button type="button" @click="login">Login</button>