Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f38aacdb
Commit
f38aacdb
authored
Mar 24, 2020
by
Hüseyin Güner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change cache path
parent
2898a3f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
doc/ci/caching/index.md
doc/ci/caching/index.md
+11
-9
No files found.
doc/ci/caching/index.md
View file @
f38aacdb
...
...
@@ -339,18 +339,20 @@ are cached per-branch:
```
yaml
image
:
golang:1.13
# Cache libraries in between jobs
cache
:
.go-cache
:
variables
:
GOPATH
:
$CI_PROJECT_DIR/.go
before_script
:
-
mkdir -p .go
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
vendor/
before_script
:
-
go mod vendor
-
.go/pkg/mod/
test
:
extends
:
.go-cache
script
:
-
go test
-mod vendor
./... -v -short
-
go test ./... -v -short
```
## Availability of the cache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment