更新.gitlab-ci.yml文件
This commit is contained in:
parent
26c7fb32c0
commit
2560334c81
|
@ -2,7 +2,8 @@ stages:
|
|||
- sync
|
||||
|
||||
variables:
|
||||
SrcPath: "$GOPATH/mongo.games.com/game" # 项目相对于GOPATH的路径
|
||||
GOPATH: "/home/gopath"
|
||||
SrcPath: "mongo.games.com/game" # 项目相对于GOPATH/src的路径
|
||||
|
||||
default:
|
||||
tags:
|
||||
|
@ -15,5 +16,4 @@ sync_job:
|
|||
script:
|
||||
- git checkout $CI_COMMIT_REF_NAME
|
||||
- git pull origin $CI_COMMIT_REF_NAME
|
||||
- echo $SrcPath
|
||||
#- rsync -rvc --no-perms --delete ./* $SrcPath
|
||||
- rsync -rvc --no-perms --delete ./* $GOPATH/src/$SrcPath
|
Loading…
Reference in New Issue