更新.gitlab-ci.yml文件
This commit is contained in:
parent
b86ce547aa
commit
5d63c3ce5b
|
@ -31,7 +31,6 @@ build-job:
|
||||||
- develop
|
- develop
|
||||||
- release
|
- release
|
||||||
script:
|
script:
|
||||||
- curl -I https://git.pogorockgames.com
|
|
||||||
- git checkout $CI_COMMIT_REF_NAME
|
- git checkout $CI_COMMIT_REF_NAME
|
||||||
- git pull
|
- git pull
|
||||||
# 拷贝到GOPATH
|
# 拷贝到GOPATH
|
||||||
|
@ -118,7 +117,7 @@ sync_job:
|
||||||
- rsync -avz --delete ./temp/ $REMOTE_USER@$REMOTE_HOST:$REMOTE_DEPLOY_PATH
|
- rsync -avz --delete ./temp/ $REMOTE_USER@$REMOTE_HOST:$REMOTE_DEPLOY_PATH
|
||||||
|
|
||||||
# 触发部署
|
# 触发部署
|
||||||
- "curl -X POST --fail -F token=$SERVER_CI_TOKEN -F ref=release -F variables[ServerName]=$ServerName https://git.pogorockgames.com/api/v4/projects/31/trigger/pipeline"
|
- curl -X POST --fail -F token=$SERVER_CI_TOKEN -F ref=release -F variables[ServerName]=$ServerName https://git.pogorockgames.com/api/v4/projects/31/trigger/pipeline
|
||||||
|
|
||||||
# 解锁作业,释放锁定
|
# 解锁作业,释放锁定
|
||||||
unlock_job:
|
unlock_job:
|
||||||
|
|
Loading…
Reference in New Issue