chore(ci): restore cache while code checkout
All checks were successful
agola/nurse/Test and lint The run finished successfully
All checks were successful
agola/nurse/Test and lint The run finished successfully
This commit is contained in:
parent
df6f6d55cb
commit
e48076f703
2 changed files with 10 additions and 2 deletions
|
@ -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:
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -16,4 +16,5 @@
|
||||||
|
|
||||||
dist/
|
dist/
|
||||||
.idea/
|
.idea/
|
||||||
cue.mod/
|
cue.mod/
|
||||||
|
.go/
|
Loading…
Reference in a new issue