更新.gitlab-ci.yml文件

This commit is contained in:
skeleton 2024-12-27 01:36:32 +00:00
parent 26c7fb32c0
commit 2560334c81
1 changed files with 3 additions and 3 deletions

View File

@ -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