Improve caching

This commit is contained in:
2019-03-12 11:11:53 +01:00
parent 7a8f0e5f8c
commit 52f16bf1bc
2 changed files with 19 additions and 3 deletions
+13
View File
@@ -3,6 +3,19 @@ stages:
variables:
DOCKER_HOST: tcp://docker:2375/
GOCACHE: "${CI_PROJECT_DIR}/_go/cache"
before_script:
- mkdir -p ${CI_PROJECT_DIR}/_go/{pkg,bin,cache}
- rm -rf /go/pkg
- ln -s ${CI_PROJECT_DIR}/_go/pkg /go/pkg
- ln -s ${CI_PROJECT_DIR}/_go/bin /go/bin
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- _go
untracked: true
image: registry.gitlab.com/sparetimecoders/build-tools