更新.gitlab-ci.yml文件

This commit is contained in:
skeleton 2024-11-05 09:44:12 +00:00
parent b21bafe1aa
commit f63f3bb5f9
1 changed files with 1 additions and 6 deletions

View File

@ -14,11 +14,6 @@ default:
tags:
- gitlab
cache:
paths:
- $GOPATH/pkg/mod/
policy: pull-push
# 锁定作业,防止并发流水线执行
lock_job:
stage: lock
@ -48,7 +43,7 @@ build-job:
# 编译
- echo '编译'
- go env -w GO111MODULE='on'
- go mod tidy
- if [ ! -z "$(git status --porcelain go.mod go.sum)" ]; then go mod tidy; fi
- |
while IFS= read -r line || [[ -n $line ]]
do