Compare commits
No commits in common. "85d1456623f66172dada1316129cd92035a82eff" and "9075f60b3f67fed4f865e01a6de3737a6389c0a5" have entirely different histories.
85d1456623
...
9075f60b3f
|
@ -35,12 +35,6 @@ build-job:
|
||||||
deploy-job:
|
deploy-job:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
# 拉取
|
|
||||||
- echo "拉取deploy"
|
|
||||||
- cd $GOPATH/src/$DeployPath
|
|
||||||
- git checkout $CI_COMMIT_REF_NAME
|
|
||||||
- git pull
|
|
||||||
|
|
||||||
# 拷贝data目录
|
# 拷贝data目录
|
||||||
- echo '拷贝data目录'
|
- echo '拷贝data目录'
|
||||||
- cd $GOPATH/src/$ProjectPath
|
- cd $GOPATH/src/$ProjectPath
|
||||||
|
@ -71,9 +65,10 @@ push_job:
|
||||||
script:
|
script:
|
||||||
# 提交代码
|
# 提交代码
|
||||||
- echo '提交代码'
|
- echo '提交代码'
|
||||||
- cd $GOPATH/src/$DeployPath
|
|
||||||
- git config user.email "ci@example.com" # 设置提交者的 email
|
- git config user.email "ci@example.com" # 设置提交者的 email
|
||||||
- git config user.name "GitLab CI" # 设置提交者的名称
|
- git config user.name "GitLab CI" # 设置提交者的名称
|
||||||
|
- cd $GOPATH/src/$DeployPath
|
||||||
|
- git checkout $CI_COMMIT_REF_NAME
|
||||||
- git add .
|
- git add .
|
||||||
- git commit -m "auto commit pipelineId $CI_PIPELINE_ID"
|
- git commit -m "auto commit pipelineId\:$CI_PIPELINE_ID"
|
||||||
- git push origin $CI_COMMIT_REF_NAME
|
- git push origin develop
|
Loading…
Reference in New Issue