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

3
.gitignore vendored
View file

@ -16,4 +16,5 @@
dist/
.idea/
cue.mod/
cue.mod/
.go/