Add go cache
This commit is contained in:
parent
f64d5c2420
commit
4a7b2d84c8
1 changed files with 10 additions and 0 deletions
|
@ -12,3 +12,13 @@ image: docker:$DOCKER_VERSION-git
|
|||
.login_registry:
|
||||
before_script:
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
|
||||
.go-cache:
|
||||
variables:
|
||||
GOPATH: $CI_PROJECT_DIR/.go
|
||||
before_script:
|
||||
- mkdir -p .go
|
||||
- export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
||||
cache:
|
||||
paths:
|
||||
- .go/pkg/mod/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue