add gitlabci
This commit is contained in:
parent
3e0fb93b6a
commit
9f25186d75
|
@ -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
|
Loading…
Reference in New Issue