Commit a9273020 authored by 邓晓峰's avatar 邓晓峰

feat: 添加免密登陆

parent 4a9c2455
Pipeline #40610 passed with stages
in 9 minutes 48 seconds
...@@ -16,7 +16,6 @@ install: ...@@ -16,7 +16,6 @@ install:
tags: tags:
- civ_base - civ_base
script: script:
- git checkout master
- npm run init - npm run init
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
...@@ -36,7 +35,7 @@ package: ...@@ -36,7 +35,7 @@ package:
script: script:
- echo "${CI_PROJECT_DIR}" - echo "${CI_PROJECT_DIR}"
- git checkout master - git checkout master
- npm run init #- npm run init
- npm run build --releasepath=../CivWebPublish2021 - npm run build --releasepath=../CivWebPublish2021
#cache: #cache:
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
...@@ -59,8 +58,8 @@ push: ...@@ -59,8 +58,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"}'
......
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