chore(ci): restore cache while code checkout
All checks were successful
agola/nurse/Test and lint The run finished successfully

This commit is contained in:
Peter Kurfer 2022-09-22 14:09:47 +02:00
parent df6f6d55cb
commit e48076f703
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View file

@ -6,9 +6,14 @@ runs:
runtime: runtime:
type: pod type: pod
containers: containers:
- image: docker.io/alpine/git - image: docker.io/golang:1.19-bullseye
environment:
GOMODCACHE: /project/.go
steps: steps:
- clone: - clone:
- run:
name: Download Go dependencies
command: go mod tidy --go=1.19
- save_to_workspace: - save_to_workspace:
contents: contents:
- source_dir: . - source_dir: .
@ -21,6 +26,7 @@ runs:
containers: containers:
- image: docker.io/golang:1.19-bullseye - image: docker.io/golang:1.19-bullseye
environment: environment:
GOMODCACHE: /project/.go
DOCKER_HOST: tcp://127.0.0.1:2375 DOCKER_HOST: tcp://127.0.0.1:2375
- image: code.icb4dc0.de/prskr/ci-images/dind:latest - image: code.icb4dc0.de/prskr/ci-images/dind:latest
privileged: true privileged: true
@ -43,6 +49,7 @@ runs:
containers: containers:
- image: docker.io/golangci/golangci-lint - image: docker.io/golangci/golangci-lint
environment: environment:
GOMODCACHE: /project/.go
GO111MODULE: "on" GO111MODULE: "on"
CGO_ENABLED: "0" CGO_ENABLED: "0"
steps: steps:

1
.gitignore vendored
View file

@ -17,3 +17,4 @@
dist/ dist/
.idea/ .idea/
cue.mod/ cue.mod/
.go/