From 2560334c81efb329beeb6120da96f0536be649e9 Mon Sep 17 00:00:00 2001 From: skeleton Date: Fri, 27 Dec 2024 01:36:32 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitlab-ci.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d68050a..c580176 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - rsync -rvc --no-perms --delete ./* $GOPATH/src/$SrcPath \ No newline at end of file