Commit 4b198a8a authored by 邓晓峰's avatar 邓晓峰

feat: add .gitllab-ci.yml

parent 8daa08c3
Pipeline #21347 skipped with stages
......@@ -77,3 +77,22 @@ push_2020:
only:
- master
when: manual
push_2019:
variables:
GIT_STRATEGY: none
stage: push
script:
- 'cd "${TARGET_REPO_2019}"'
- 'git reset --hard head'
- 'git clean -fd'
- 'git remote set-url origin "https://${GIT_ACCESS_USER}:${GIT_ACCESS_PASSWORD}@g.civnet.cn:8443/CivPublish/CivWebPublish.git"'
- 'git pull origin map'
- 'robocopy "${CI_PROJECT_DIR}/../CivWebPublish2021/civmanage" "${TARGET_REPO_2019}/civmanage" /S ;
IF ((${LASTEXITCODE} -le 8)) {cmd /c "exit /b 0"}'
- 'git add . ; git reset HEAD Web.config CityInterface/Web.config CityWebFW/Web.config ; git commit -m "auto package civmanage."'
#- 'git push origin map'
only:
- master
when: manual
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