修改ci文件

This commit is contained in:
sk 2024-11-29 11:25:49 +08:00
parent 1ade65ba36
commit 2d12390882
1 changed files with 11 additions and 0 deletions

View File

@ -9,11 +9,22 @@ variables:
ProjectPath: "mongo.games.com/game" # 项目相对于GOPATH的路径 ProjectPath: "mongo.games.com/game" # 项目相对于GOPATH的路径
BetaBinPath: "/home/game/" # beta环境部署路径 BetaBinPath: "/home/game/" # beta环境部署路径
DevelopBinPath: "/home/game/" # develop环境部署路径 DevelopBinPath: "/home/game/" # develop环境部署路径
GOPROXY: "https://goproxy.cn,direct"
default: default:
tags: tags:
- gitlab - gitlab
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- ${GOPATH}/pkg/mod
- ${GOPATH}/bin
- .cache/go-build
before_script:
- chmod -R 777 ${GOPATH}/pkg/mod .cache/go-build
# 锁定作业,防止并发流水线执行 # 锁定作业,防止并发流水线执行
lock_job: lock_job:
stage: lock stage: lock