Commit 9637e100 authored by 邓晓峰's avatar 邓晓峰

feat: 添加免密登陆

parent 1cc31222
Pipeline #40605 passed with stages
in 6 minutes 14 seconds
......@@ -6,26 +6,26 @@ before_script:
- 'git config core.autocrlf false'
stages:
- install
#- install
- package
- push
install:
stage: install
tags:
- civ_base
script:
- npm run init
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
only:
refs:
- master
variables:
- $NPM_INSTALL == "true"
when: manual
#install:
# stage: install
# tags:
# - civ_base
# script:
# - npm run init
# cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - node_modules/
# only:
# refs:
# - master
# variables:
# - $NPM_INSTALL == "true"
# when: manual
package:
stage: package
......@@ -33,11 +33,13 @@ package:
- civ_base
script:
- echo "${CI_PROJECT_DIR}"
- git checkout master
- npm run init
- npm run build --releasepath=../CivWebPublish2021
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
#cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - node_modules/
only:
- master
when: manual
......@@ -55,8 +57,8 @@ push:
- 'git clean -fd'
- 'git remote set-url origin "https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish2021.git"'
- 'git pull origin map'
#- 'git rm -rf "${TARGET_REPO}/civbase"'
#- 'git commit -m "chore: clear folder"'
- 'git rm -rf "${TARGET_REPO}/civbase"'
- 'git commit -m "chore: clear folder"'
- 'git push origin map'
- 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civbase" "${TARGET_REPO}/civbase" /S ;
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