From e618be29caa2bfd9c3a22ce64e9762d8e376d50e Mon Sep 17 00:00:00 2001 From: shaoyongjun Date: Tue, 30 Apr 2024 00:12:00 +0800 Subject: [PATCH] to:sync --- .gitlab-ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a8bf14..1d88ffd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,15 +3,6 @@ stages: - package - deploy -.go-cache: - variables: - GOPATH: $CI_PROJECT_DIR/.go - before_script: - - mkdir -p .go - cache: - paths: - - .go/pkg/mod/ - golang-build: only: - master @@ -19,7 +10,12 @@ golang-build: - test stage: build image: golang:1.22.0 - extends: .go-cache + before_script: + - mkdir -p /root/go/pkg/mod + - env && echo $GOPATH + cache: [ ] + variables: + GOPATH: /root/go script: - | export GOPROXY="https://goproxy.cn"