Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
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
ReactWeb5
CivWeb
Commits
9b3abc4b
Commit
9b3abc4b
authored
Dec 19, 2021
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加免密登陆
parent
5771dcd8
Pipeline
#40608
failed
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
.gitlab-ci.yml
.gitlab-ci.yml
+20
-19
No files found.
.gitlab-ci.yml
View file @
9b3abc4b
variables
:
variables
:
TARGET_REPO
:
"
G:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
TARGET_REPO
:
"
G:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
GIT_STRATEGY
:
'
clone
'
GIT_STRATEGY
:
'
fetch
'
GIT_CHECKOUT
:
'
false'
GIT_CHECKOUT
:
'
false'
before_script
:
before_script
:
-
chcp 65001
-
chcp 65001
...
@@ -11,22 +11,23 @@ stages:
...
@@ -11,22 +11,23 @@ stages:
-
package
-
package
-
push
-
push
#install:
install
:
# stage: install
stage
:
install
# tags:
tags
:
# - civ_base
-
civ_base
# script:
script
:
# - npm run init
-
git checkout master
# cache:
-
npm run init
# key: ${CI_COMMIT_REF_SLUG}
cache
:
# paths:
key
:
${CI_COMMIT_REF_SLUG}
# - node_modules/
paths
:
# only:
-
node_modules/
# refs:
only
:
# - master
refs
:
# variables:
-
master
# - $NPM_INSTALL == "true"
variables
:
# when: manual
-
$NPM_INSTALL == "true"
when
:
manual
package
:
package
:
stage
:
package
stage
:
package
...
@@ -58,8 +59,8 @@ push:
...
@@ -58,8 +59,8 @@ push:
-
'
git
clean
-fd'
-
'
git
clean
-fd'
-
'
git
remote
set-url
origin
"https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"'
-
'
git
remote
set-url
origin
"https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"'
-
'
git
pull
origin
map'
-
'
git
pull
origin
map'
#
- 'git rm -rf "${TARGET_REPO}/civbase"'
-
'
git
rm
-rf
"${TARGET_REPO}/civbase"'
#
- 'git commit -m "chore: clear folder"'
-
'
git
commit
-m
"chore:
clear
folder"'
-
'
git
push
origin
map'
-
'
git
push
origin
map'
-
'
robocopy
"${CI_PROJECT_DIR}/../CivWebPublish2021/civbase"
"${TARGET_REPO}/civbase"
/S
;
-
'
robocopy
"${CI_PROJECT_DIR}/../CivWebPublish2021/civbase"
"${TARGET_REPO}/civbase"
/S
;
IF
((${LASTEXITCODE}
-le
8))
{cmd
/c
"exit
/b
0"}'
IF
((${LASTEXITCODE}
-le
8))
{cmd
/c
"exit
/b
0"}'
...
...
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