diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1ee3ac8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: + - sync + +variables: + Path: "$GOPATH/mongo.games.com/game" # 项目相对于GOPATH的路径 + +default: + tags: + - gitlab + +sync_job: + stage: sync + only: + - main + script: + - git checkout $CI_COMMIT_REF_NAME + - git pull origin $CI_COMMIT_REF_NAME + - rsync -rvc --no-perms --delete ./* $PATH \ No newline at end of file