add gitlabci

This commit is contained in:
sk 2024-12-27 09:25:15 +08:00
parent 3e0fb93b6a
commit 9f25186d75
1 changed files with 18 additions and 0 deletions

18
.gitlab-ci.yml Normal file
View File

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